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

Action: Fix milestone tagging not working for community PRs #1278

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Dec 7, 2020

Reference issue: WordPress/gutenberg#17324 (comment)

Because the GitHub Action runs on our repository, it doesn't have permission to modify a community pull request, as those belong to the original forked repository.

This PR solves that by running the Action in the context of the original repository, by triggering from the pull_request_target event, instead of pull_request.

Reference issue: WordPress/gutenberg#17324 (comment)

Because the GitHub Action runs on our repository, it doesn't have permission to modify a community pull request, as those belong to the original forked repository.

This PR solves that by running the Action in the context of the original repository, by triggering from the `pull_request_target` event, instead of `pull_request`.
@marcotc marcotc added the dev/github Github repository maintenance and automation label Dec 7, 2020
@marcotc marcotc self-assigned this Dec 7, 2020
@marcotc marcotc requested a review from a team December 7, 2020 16:44
@marcotc marcotc merged commit 3693a83 into master Dec 8, 2020
@marcotc marcotc deleted the gh/fix-milestone-on-fork branch December 8, 2020 16:50
@marcotc marcotc added this to the 0.44.0 milestone Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/github Github repository maintenance and automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants