From eaeda3adffe848d228952a8f0ba763e94cdadc34 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 29 Dec 2020 00:58:26 -0500 Subject: [PATCH 1/6] spelling: quick Signed-off-by: Josh Soref --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5999e54..f533a70 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ Disney * Windows Terminal Launch: [Terminal "Sizzle Video"](https://www.youtube.com/watch?v=8gw0rXPMMPE&list=PLEHMQNlPj-Jzh9DkNpqipDGCZZuOwrQwR&index=2&t=0s) -teh qiuck +teh quick From 76d4b318871867b870249d33d34823b04dd10bb6 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 29 Apr 2021 21:30:20 +0000 Subject: [PATCH 2/6] Upgrade to GitHub-native Dependabot --- .github/dependabot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..3e2230a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily + time: "10:00" + open-pull-requests-limit: 10 From af67ef82ae75e490fef619423c680ed39714b87c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 30 Apr 2021 02:47:00 +0000 Subject: [PATCH 3/6] Bump actions/checkout from v2.0.0 to v2.3.4 Bumps [actions/checkout](https://github.com/actions/checkout) from v2.0.0 to v2.3.4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.0.0...5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f) Signed-off-by: dependabot[bot] --- .github/workflows/spelling.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index e6a725a..c974042 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -6,7 +6,7 @@ jobs: name: Spell checking runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.0.0 + - uses: actions/checkout@v2.3.4 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 From e9ae18985290193108014e9b33bcbf1dfd8172b2 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Fri, 30 Apr 2021 10:23:10 -0400 Subject: [PATCH 4/6] enable experimental --- .github/workflows/spelling.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index c974042..6afb4a2 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -1,17 +1,21 @@ name: Spell checking -on: [pull_request_target, push, issue_comment, pull_request_review_comment] +on: [pull_request_target, push, issue_comment] jobs: build: name: Spell checking runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.4 + - name: checkout-merge + if: "contains(github.event_name, 'pull_request')" + uses: actions/checkout@v2.3.4 with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 0 + ref: refs/pull/${{github.event.pull_request.number}}/merge + - name: checkout + if: "!contains(github.event_name, 'pull_request')" + uses: actions/checkout@v2.3.4 + - uses: jsoref/check-spelling@prerelease - env: - bucket: .github/actions - project: spell-check - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + config: .github/actions/spell-check + experimental_apply_changes_via_bot: 1 From 7a74808e65a9536f9b7e47995d474bbf20e3ed93 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 25 Jul 2021 18:33:18 -0400 Subject: [PATCH 5/6] Update spelling.yml --- .github/workflows/spelling.yml | 83 +++++++++++++++++++++++++++++++--- 1 file changed, 77 insertions(+), 6 deletions(-) diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index 6afb4a2..6217ff1 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -1,21 +1,92 @@ name: Spell checking -on: [pull_request_target, push, issue_comment] +on: + push: + branches: + - "**" + tags-ignore: + - "**" + pull_request_target: + issue_comment: + types: [created] jobs: - build: + spelling: name: Spell checking + permissions: + contents: read + pull-requests: read runs-on: ubuntu-latest + if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'" steps: - name: checkout-merge if: "contains(github.event_name, 'pull_request')" - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2 with: ref: refs/pull/${{github.event.pull_request.number}}/merge - name: checkout - if: "!contains(github.event_name, 'pull_request')" - uses: actions/checkout@v2.3.4 + if: github.event_name == 'push' + uses: actions/checkout@v2 + - name: check-spelling + id: spelling + uses: check-spelling/check-spelling@prerelease + with: + config: .github/actions/spell-check + experimental_apply_changes_via_bot: 1 + suppress_push_for_open_pull_request: 1 + post_comment: 0 + - name: store-comment + if: failure() + uses: actions/upload-artifact@v2 + with: + name: "check-spelling-comment-${{ github.run_id }}" + path: | + ${{ steps.spelling.outputs.internal_state_directory }} - - uses: jsoref/check-spelling@prerelease + comment: + name: Comment + runs-on: ubuntu-latest + needs: spelling + permissions: + contents: write + pull-requests: write + if: always() && needs.spelling.result == 'failure' + steps: + - name: checkout + uses: actions/checkout@v2 + - name: set up + run: | + mkdir /tmp/data + - name: retrieve-comment + uses: actions/download-artifact@v2 + with: + name: "check-spelling-comment-${{ github.run_id }}" + path: /tmp/data + - name: comment + uses: check-spelling/check-spelling@prerelease + with: + config: .github/actions/spell-check + experimental_apply_changes_via_bot: 1 + custom_task: comment + internal_state_directory: /tmp/data + debug: 1 + + update: + name: Update PR + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + if: ${{ + github.event_name == 'issue_comment' && + github.event.issue.pull_request && + contains(github.event.comment.body, '@check-spelling-bot apply') + }} + steps: + - name: checkout + uses: actions/checkout@v2 + - name: check-spelling + uses: check-spelling/check-spelling@prerelease with: config: .github/actions/spell-check experimental_apply_changes_via_bot: 1 + debug: 1 From 458cc6e81772851c34624160103dabf58337ea78 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 9 Dec 2021 04:37:39 -0500 Subject: [PATCH 6/6] Use check-spelling/checkout-merge@v0.0.0 --- .github/workflows/spelling.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index 6217ff1..a7a3ff2 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -18,15 +18,13 @@ jobs: runs-on: ubuntu-latest if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'" steps: - - name: checkout-merge - if: "contains(github.event_name, 'pull_request')" - uses: actions/checkout@v2 - with: - ref: refs/pull/${{github.event.pull_request.number}}/merge - name: checkout - if: github.event_name == 'push' uses: actions/checkout@v2 + - name: checkout-merge + if: "contains(github.event_name, 'pull_request')" + uses: check-spelling/checkout-merge@v0.0.0 - name: check-spelling + if: env.MERGE_FAILED != '1' id: spelling uses: check-spelling/check-spelling@prerelease with: