We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 863ba4b commit e8fcbc8Copy full SHA for e8fcbc8
tools/actions/commit-queue.sh
@@ -7,6 +7,9 @@ REPOSITORY=$2
7
GITHUB_TOKEN=$3
8
shift 3
9
10
+UPSTREAM=origin
11
+DEFAULT_BRANCH=master
12
+
13
API_URL=https://api.github.com
14
COMMIT_QUEUE_LABEL='commit-queue'
15
COMMIT_QUEUE_FAILED_LABEL='commit-queue-failed'
@@ -77,9 +80,12 @@ for pr in "$@"; do
77
80
git node land --abort --yes
78
81
else
79
82
rm output
- git push origin master
83
- gitHubCurl "$(commentsUrl "$pr")" POST --data '{"body": "Landed in '"$(git rev-parse HEAD)"'"}'
84
+ commits="$(git rev-parse $UPSTREAM/$DEFAULT_BRANCH)...$(git rev-parse HEAD)"
85
86
+ git push $UPSTREAM $DEFAULT_BRANCH
87
88
+ gitHubCurl "$(commentsUrl "$pr")" POST --data '{"body": "Landed in '"$commits"'"}'
89
90
gitHubCurl "$(issueUrl "$pr")" PATCH --data '{"state": "closed"}'
91
fi
0 commit comments