File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ REPOSITORY=$2
7
7
GITHUB_TOKEN=$3
8
8
shift 3
9
9
10
+ UPSTREAM=origin
11
+ DEFAULT_BRANCH=master
12
+
10
13
API_URL=https://api.github.com
11
14
COMMIT_QUEUE_LABEL=' commit-queue'
12
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
80
- git push origin master
81
83
82
- 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 " ' "}'
83
89
84
90
gitHubCurl " $( issueUrl " $pr " ) " PATCH --data ' {"state": "closed"}'
85
91
fi
You can’t perform that action at this time.
0 commit comments