This commit is contained in:
parent
b91b9748b1
commit
8a9083d196
@ -25,7 +25,7 @@ fi
|
|||||||
RES=$(curl --request POST \
|
RES=$(curl --request POST \
|
||||||
--url "https://$PLUGIN_DOMAIN/api/v1/repos/$DRONE_REPO/pulls" \
|
--url "https://$PLUGIN_DOMAIN/api/v1/repos/$DRONE_REPO/pulls" \
|
||||||
--header "Content-Type: application/json" \
|
--header "Content-Type: application/json" \
|
||||||
--header "Authorization: token $APIKEY" \
|
--header "Authorization: token $PLUGIN_APIKEY" \
|
||||||
-F \
|
-F \
|
||||||
--data "{
|
--data "{
|
||||||
\"title\": \"$PLUGIN_TITLE\",
|
\"title\": \"$PLUGIN_TITLE\",
|
||||||
@ -44,7 +44,7 @@ if [ "${PLUGIN_MERGE:-false}" = true ]; then
|
|||||||
curl --request POST \
|
curl --request POST \
|
||||||
--url "https://$PLUGIN_DOMAIN/api/v1/repos/$DRONE_REPO/pulls/$ID/merge" \
|
--url "https://$PLUGIN_DOMAIN/api/v1/repos/$DRONE_REPO/pulls/$ID/merge" \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--header "Authorization: token $APIKEY" \
|
--header "Authorization: token $PLUGIN_APIKEY" \
|
||||||
-F \
|
-F \
|
||||||
--data "{
|
--data "{
|
||||||
\"do\": \"merge\",
|
\"do\": \"merge\",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user