@@ -7,6 +7,7 @@ BOT_TOKEN=${BOT_TOKEN:-}
|
7 | 7 | |
8 | 8 | RELEASE_DATE=$1 |
9 | 9 | RELEASE_LINE=$2 |
| 10 | +RELEASER=$3 |
10 | 11 | |
11 | 12 | if [ -z "$RELEASE_DATE" ] || [ -z "$RELEASE_LINE" ]; then |
12 | 13 | echo "Usage: $0 <RELEASE_DATE> <RELEASE_LINE>" |
@@ -48,7 +49,7 @@ PR_URL="$(gh api \
|
48 | 49 | -H "Accept: application/vnd.github+json" \ |
49 | 50 | -H "X-GitHub-Api-Version: 2022-11-28" \ |
50 | 51 | "/repos/${GITHUB_REPOSITORY}/pulls" \ |
51 | | - -f "title=$TITLE" -f "body=$TEMP_BODY" -f "head=$HEAD_BRANCH" -f "base=v$RELEASE_LINE.x")" |
| 52 | + -f "title=$TITLE" -f "body=$TEMP_BODY" -f "head=$HEAD_BRANCH" -f "base=v$RELEASE_LINE.x" -f draft=true)" |
52 | 53 | |
53 | 54 | # Push the release commit to the proposal branch using `BOT_TOKEN` from the env |
54 | 55 | node --input-type=module - \ |
@@ -124,3 +125,5 @@ if (data.errors?.length) {
|
124 | 125 | } |
125 | 126 | console.log(util.inspect(data, { depth: Infinity })); |
126 | 127 | EOF |
| 128 | + |
| 129 | +gh pr edit "$PR_URL" --add-label release --add-assignee "$RELEASER" |