Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to suggest skipping tests #1790

Closed
wants to merge 3 commits into from

Conversation

senekor
Copy link
Contributor

@senekor senekor commented Nov 20, 2023

No description provided.

@senekor senekor force-pushed the no-important-files-changed branch 13 times, most recently from 1746a76 to 096d6f8 Compare November 25, 2023 13:17
@senekor senekor force-pushed the no-important-files-changed branch from 096d6f8 to 86fbe30 Compare November 25, 2023 13:29
Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Comment on lines 18 to 23
- name: Check if important files changed
id: check
env:
TARGET_BRANCH: ${{ github.base_ref }}
run: |
set -exo pipefail
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should check to see if the target branch is main instead? The reason for that is that only when something is merged to main will be actually be doing anything on the website side of things. That way this workflow wouldn't run when someone PR's something to a branch (which we don't care about from the website side of things).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done 👍

Comment on lines +7 to +8
permissions:
pull-requests: write
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you're being explicit about the permissions!

uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script: |
const body = "This PR touches files which probably affect the outcome of the tests of an exercise. If this is not the case, please add the following to the merge-commit message. Copy-paste to avoid typos. This will prevent tests from rerunning unnecessarily. For more information, refer to the [documentation](https://exercism.org/docs/building/tracks#h-avoiding-triggering-unnecessary-test-runs).\n```\n[no important files changed]\n```"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to tweak the wording a bit, but that's for later.

Co-authored-by: Jeremy Walker <[email protected]>
@senekor senekor closed this Jan 26, 2024
@senekor senekor deleted the no-important-files-changed branch January 26, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants