From 2b5fec009f27f9019991f97758d6997f78b25bb3 Mon Sep 17 00:00:00 2001 From: Exercism Bot <66069679+exercism-bot@users.noreply.github.com> Date: Thu, 1 Feb 2024 13:22:11 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A4=96=20Sync=20org-wide=20files=20to?= =?UTF-8?q?=20upstream=20repo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit More info: https://github.com/exercism/org-wide-files/commit/bfc6fe525e057a43f41e4fd83dfac00569d14086 --- .github/workflows/configlet.yml | 3 --- .github/workflows/no-important-files-changed.yml | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/configlet.yml b/.github/workflows/configlet.yml index 19525bff5..47eb87543 100644 --- a/.github/workflows/configlet.yml +++ b/.github/workflows/configlet.yml @@ -13,6 +13,3 @@ permissions: jobs: configlet: uses: exercism/github-actions/.github/workflows/configlet.yml@main - with: - lint: true - fmt: true diff --git a/.github/workflows/no-important-files-changed.yml b/.github/workflows/no-important-files-changed.yml index 39a655174..26b068bc4 100644 --- a/.github/workflows/no-important-files-changed.yml +++ b/.github/workflows/no-important-files-changed.yml @@ -57,6 +57,7 @@ jobs: if: steps.check.outputs.important_files_changed == 'true' uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea with: + github-token: ${{ github.token }} script: | const body = "This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.\n\nIf this PR does **not** affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), **please add the following to the merge-commit message** which will stops student's tests from re-running. Please copy-paste to avoid typos.\n```\n[no important files changed]\n```\n\n For more information, refer to the [documentation](https://exercism.org/docs/building/tracks#h-avoiding-triggering-unnecessary-test-runs). If you are unsure whether to add the message or not, please ping `@exercism/maintainers-admin` in a comment. Thank you!" github.rest.issues.createComment({ From 869d147ed847781bdc314eaa5cfc805fd2a57281 Mon Sep 17 00:00:00 2001 From: Sander Ploegsma Date: Thu, 1 Feb 2024 14:35:11 +0100 Subject: [PATCH 2/2] Restore configlet workflow, prevent future updates --- .github/org-wide-files-config.toml | 2 ++ .github/workflows/configlet.yml | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 .github/org-wide-files-config.toml diff --git a/.github/org-wide-files-config.toml b/.github/org-wide-files-config.toml new file mode 100644 index 000000000..577840e35 --- /dev/null +++ b/.github/org-wide-files-config.toml @@ -0,0 +1,2 @@ +[configlet] +fmt = true diff --git a/.github/workflows/configlet.yml b/.github/workflows/configlet.yml index 47eb87543..c730b5820 100644 --- a/.github/workflows/configlet.yml +++ b/.github/workflows/configlet.yml @@ -13,3 +13,5 @@ permissions: jobs: configlet: uses: exercism/github-actions/.github/workflows/configlet.yml@main + with: + fmt: true