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

Example workflow: Don't run the bot when PR is from a fork #75

Merged
merged 2 commits into from
Mar 9, 2024

Conversation

desrosj
Copy link
Contributor

@desrosj desrosj commented Feb 16, 2024

What?

This updates the example workflow file to prevent pull_request_review and pull_request_review_comment events from attempting to run the bot.

Why?

For PRs that originate from forked repositories, pull_request_review and pull_request_review_comment events do not have the permissions necessary to comment on the PR.

See #57.

@desrosj desrosj self-assigned this Feb 16, 2024
Copy link

github-actions bot commented Feb 16, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core SVN

Core Committers: Use this line as a base for the props when committing in SVN:

Props desrosj, jorbin.

GitHub Merge commits

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <[email protected]>
Co-authored-by: aaronjorbin <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@desrosj desrosj requested a review from aaronjorbin February 26, 2024 13:36
@desrosj desrosj merged commit 9253667 into trunk Mar 9, 2024
7 checks passed
@desrosj desrosj deleted the fix/skip-pr-reviews-from-forks branch March 9, 2024 00:51
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.

2 participants