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:
commit
d9a69c37a5
|
@ -1,6 +1,6 @@
|
|||
name: "Pull request post-merge processing"
|
||||
on:
|
||||
pull_request:
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [closed]
|
||||
|
||||
jobs:
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue