diff --git a/build-support/bin/cherry_pick.sh b/build-support/bin/cherry_pick.sh index 04c26f12f27..0df7b10d4a0 100755 --- a/build-support/bin/cherry_pick.sh +++ b/build-support/bin/cherry_pick.sh @@ -89,7 +89,7 @@ for MILESTONE in $MILESTONES; do # spend time cloning the whole history git_fetch_with_depth 1 "$MILESTONE" || continue - PR_CREATE_CMD=(gh pr create --base "$MILESTONE" --title "$TITLE (Cherry-pick of #$PR_NUM)" --label "$CATEGORY_LABEL" --body-file "$BODY_FILE") + PR_CREATE_CMD=(gh pr create --base "$MILESTONE" --title "$TITLE (Cherry-pick of #$PR_NUM)" --label "$CATEGORY_LABEL" --body-file "$BODY_FILE" --milestone "$MILESTONE") while IFS= read -r REVIEWER; do PR_CREATE_CMD+=(--reviewer "$REVIEWER"); done <<< "$REVIEWERS" # NB: Add the author in case someone else creates the PR PR_CREATE_CMD+=(--reviewer "$(gh pr view "$PR_NUM" --json author --jq '.author.login')")