woocommerce/.github
Nestor Soriano d48775f440 Use 'pull_request_target' in the automatic milestoning action
The original event used, 'pull_request', runs in the context of the
pull request. In the case of pull requests created from forks this means
that a read-only GitHub token is used for API calls, and thus the
call used to assign the milestone fails.

The fix is using the 'pull_request_target' event, which runs in the
context of the base branch, and thus with a read-write token. See:
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target

Also, added a warning message when no milestone without a release
branch is found and thus the newest existing milestone is assigned
(this is a fallback that should normally not happen).
2021-08-03 09:30:07 +01:00
..
ISSUE_TEMPLATE fixed a typo in the bug issue template of github 2021-06-30 17:10:10 +02:00
workflows Use 'pull_request_target' in the automatic milestoning action 2021-08-03 09:30:07 +01:00
CONTRIBUTING.md Update default GIT branch 2021-02-25 20:51:14 -03:00
ISSUE_TEMPLATE.md Updated GitHub issue templates to include more details of the information we require. 2020-06-14 21:35:05 +01:00
PULL_REQUEST_TEMPLATE.md Update default GIT branch 2021-02-25 20:51:14 -03:00
wiki.png wiki 2017-01-27 11:24:16 +00:00