Skip to content

Commit 3221355

Browse files
committed
define pr assignee and reviewer at top
1 parent b29e24c commit 3221355

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/release.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ script_check=1
5353
mainline=1
5454
channel=mainline
5555

56+
# These values will be used for any PRs created.
57+
pr_review_assignee=${CODER_RELEASE_PR_REVIEW_ASSIGNEE:-@me}
58+
pr_review_reviewer=${CODER_RELEASE_PR_REVIEW_REVIEWER:-bpmct,stirby}
59+
5660
args="$(getopt -o h -l dry-run,help,ref:,mainline,stable,major,minor,patch,force,ignore-script-out-of-date -- "$@")"
5761
eval set -- "$args"
5862
while true; do
@@ -345,8 +349,8 @@ You can follow the release progress [here](https://github.com/coder/coder/action
345349

346350
log "Creating pull request..."
347351
maybedryrun "${dry_run}" gh pr create \
348-
--assignee "@me" \
349-
--reviewer bpmct,stirby \
352+
--assignee "${pr_review_assignee}" \
353+
--reviewer "${pr_review_reviewer}" \
350354
--base "${branch}" \
351355
--head "${pr_branch}" \
352356
--title "${title}" \

0 commit comments

Comments
 (0)