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'
@@ -76,9 +79,12 @@ for pr in "$@"; do
76
79
git node land --abort --yes
77
80
else
78
81
rm output
79
- git push origin master
80
82
81
- gitHubCurl " $( commentsUrl " $pr " ) " POST --data ' {"body": "Landed in ' " $( git rev-parse HEAD) " ' "}'
83
+ commits=" $( git rev-parse $UPSTREAM /$DEFAULT_BRANCH ) ...$( git rev-parse HEAD) "
84
+
85
+ git push $UPSTREAM $DEFAULT_BRANCH
86
+
87
+ gitHubCurl " $( commentsUrl " $pr " ) " POST --data ' {"body": "Landed in ' " $commits " ' "}'
82
88
83
89
gitHubCurl " $( issueUrl " $pr " ) " PATCH --data ' {"state": "closed"}'
84
90
fi
You can’t perform that action at this time.
0 commit comments