Skip to content

Commit

Permalink
Action: Fix milestone tagging not working for community PRs (#1278)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
marcotc authored Dec 8, 2020
1 parent a6d20a3 commit 3693a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/add-milestone-to-pull-requests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Add milestone to pull requests
on:
pull_request:
pull_request_target:
types: [closed]
branches:
- master
Expand Down

0 comments on commit 3693a83

Please sign in to comment.