Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check-no-important-files-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- name: Check if important files changed
id: check
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
script: |
const { owner, repo } = context.repo;
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:

- name: Suggest to add [no important files changed]
if: steps.check.outputs.result == 'true'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
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!"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/community-contributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Detect if user is org member
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
id: is-organization-member
with:
github-token: ${{ secrets.github_membership_token || secrets.GITHUB_TOKEN }}
Expand All @@ -38,7 +38,7 @@ jobs:
.catch(err => false);
- name: Comment
if: steps.is-organization-member.outputs.result == 'false'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
script: |
const isIssue = !!context.payload.issue;
Expand All @@ -59,7 +59,7 @@ jobs:
})
- name: Close
if: steps.is-organization-member.outputs.result == 'false'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
script: |
github.rest.issues.update({
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ping-cross-track-maintainers-team.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Check if repo requires ping
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
id: repo-requires-ping
with:
script: |
Expand All @@ -29,7 +29,7 @@ jobs:
response.data.names.includes('maintained-solitary');

- name: Check if repo is tooling repo
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
if: steps.repo-requires-ping.outputs.result == 'true'
id: is-tooling-repo
with:
Expand All @@ -42,7 +42,7 @@ jobs:
return response.data.names.includes('exercism-tooling');

- name: Check if repo is unmaintained repo
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
if: steps.repo-requires-ping.outputs.result == 'true'
id: is-unmaintained-repo
with:
Expand All @@ -55,7 +55,7 @@ jobs:
return response.data.names.includes('unmaintained');

- name: Check if PR author is member of cross-track-maintainers team
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
if: steps.repo-requires-ping.outputs.result == 'true' && steps.is-tooling-repo.outputs.result == 'false'
id: author-is-member-cross-track-maintainers-team
with:
Expand All @@ -74,7 +74,7 @@ jobs:
.catch(err => false);

- name: Check if PR author is member of guardians team
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
id: author-is-member-guardians-team
if: steps.repo-requires-ping.outputs.result == 'true' && steps.is-tooling-repo.outputs.result == 'true'
with:
Expand All @@ -94,7 +94,7 @@ jobs:

- name: Create cross-track-maintainers team ping comment
if: steps.repo-requires-ping.outputs.result == 'true' && steps.is-tooling-repo.outputs.result == 'false' && steps.author-is-member-cross-track-maintainers-team.outputs.result == 'false'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
script: |
github.rest.issues.createComment({
Expand All @@ -106,7 +106,7 @@ jobs:

- name: Create cross-track-maintainers team unmaintained repo comment
if: steps.repo-requires-ping.outputs.result == 'true' && steps.is-tooling-repo.outputs.result == 'false' && steps.is-unmaintained-repo.outputs.result == 'true' && steps.author-is-member-cross-track-maintainers-team.outputs.result == 'false'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
script: |
github.rest.issues.createComment({
Expand All @@ -118,7 +118,7 @@ jobs:

- name: Create guardians team ping comment
if: steps.repo-requires-ping.outputs.result == 'true' && steps.is-tooling-repo.outputs.result == 'true' && steps.author-is-member-guardians-team.outputs.result == 'false'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
script: |
github.rest.issues.createComment({
Expand Down