-
-
Notifications
You must be signed in to change notification settings - Fork 455
Stop spell check on push #1760
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
Stop spell check on push #1760
Conversation
[ci skip]
5003fd3 to
2604b01
Compare
| followup: ${{ steps.spelling.outputs.followup }} | ||
| runs-on: ubuntu-latest | ||
| if: (contains(github.event_name, 'pull_request') && github.head_ref != 'l10n_dev') || github.event_name == 'push' | ||
| if: (contains(github.event_name, 'pull_request') && github.head_ref != 'l10n_dev') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this pull request event work, would it only get triggered when a pr is created? If the case then it probably wouldn't be triggered again by subsequent pushes to the pr.
I wonder maybe a better way is to just github.head_ref != dev && github.head_ref != master, so it doesn't check pushes to dev and master branches.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is also triggered on synchronize event (any push to the pr head triggers it). Tested in my fork.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simply ignoring dev or master is enough though. but if you push to a fork the check is also triggered. I want to just check in the pr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh forget to comment on push at the beginning of the file
| # with: | ||
| # checkout: true | ||
| # spell_check_this: check-spelling/spell-check-this@main | ||
| # task: ${{ needs.spelling.outputs.followup }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we commenting these out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is bot comment for push checks. Check on push is disabled so this is not needed anymore.
[ci skip]
Stop checking on push to avoid checking merge commits on dev branch. Commits of PRs can be checked on synchronized.