This commit is contained in:
parent
8a9083d196
commit
66409c298f
@ -26,7 +26,7 @@ RES=$(curl --request POST \
|
||||
--url "https://$PLUGIN_DOMAIN/api/v1/repos/$DRONE_REPO/pulls" \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "Authorization: token $PLUGIN_APIKEY" \
|
||||
-F \
|
||||
-f \
|
||||
--data "{
|
||||
\"title\": \"$PLUGIN_TITLE\",
|
||||
\"body\": \"Automatic merge of $PLUGIN_SOURCE into $PLUGIN_TARGET\",
|
||||
@ -45,7 +45,7 @@ if [ "${PLUGIN_MERGE:-false}" = true ]; then
|
||||
--url "https://$PLUGIN_DOMAIN/api/v1/repos/$DRONE_REPO/pulls/$ID/merge" \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "Authorization: token $PLUGIN_APIKEY" \
|
||||
-F \
|
||||
-f \
|
||||
--data "{
|
||||
\"do\": \"merge\",
|
||||
\"delete_branch_after_merge\": $PLUGIN_DELETE_SOURCE
|
||||
|
Loading…
x
Reference in New Issue
Block a user