Skip to content

Commit

Permalink
Update pull-request.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdevitt-newforma authored Sep 18, 2019
1 parent 5573296 commit 18e6501
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pull-request.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ create_pull_request() {
# Merge the PR
PULLS_MERGE_URL="${PULLS_URL}/${PR_NUMBER}/merge"
echo "Merging PR ${PR_NUMBER}: ${PULLS_MERGE_URL}"
PULLS_MERGE_DATA="{\"merge_method\":\"merge\"}"
RESPONSE=$(curl -sSL -H "${BUILD_USER_AUTH_HEADER}" -H "${HEADER}" -X PUT --data "${PULLS_MERGE_DATA}" ${PULLS_MERGE_URL})
RESPONSE=$(curl -sSL -H "${BUILD_USER_AUTH_HEADER}" -H "${HEADER}" -X PUT ${PULLS_MERGE_URL})
echo "PR Merge Response: ${RESPONSE}"
}

Expand Down

0 comments on commit 18e6501

Please sign in to comment.