Merge pull request #30381 from woocommerce/fix/automatic-milestoning-for-fork-prs

Fix: automatic milestoning GitHub action not working with PRs coming from forks
This commit is contained in:
Vedanshu Jain 2021-07-29 21:08:57 +05:30 committed by GitHub
commit d9a69c37a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
name: "Pull request post-merge processing"
on:
pull_request:
on:
pull_request_target:
types: [closed]
jobs:

View File

@ -85,6 +85,7 @@ foreach ( $milestones as $milestone ) {
// If all the milestones have a release branch, just take the newest one.
if ( is_null( $chosen_milestone ) ) {
echo "WARNING: No milestone without release branch found, the newest one will be assigned.\n";
$chosen_milestone = $milestones[0];
}