fix: correct merge_when_checks_succeed to true for auto-merge (#170)
This commit is contained in:
parent
7b9c483477
commit
a916904e76
2 changed files with 2 additions and 2 deletions
|
|
@ -2980,7 +2980,7 @@ This PR creates a vault item for the release of version ${version}.
|
||||||
-H "Authorization: token ${FORGE_TOKEN}" \
|
-H "Authorization: token ${FORGE_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"${FORGE_URL}/api/v1/repos/${FORGE_OPS_REPO}/pulls/${pr_number}/merge" \
|
"${FORGE_URL}/api/v1/repos/${FORGE_OPS_REPO}/pulls/${pr_number}/merge" \
|
||||||
-d '{"Do":"merge","merge_when_checks_succeed":false}' >/dev/null 2>&1 || {
|
-d '{"Do":"merge","merge_when_checks_succeed":true}' >/dev/null 2>&1 || {
|
||||||
echo "Warning: failed to enable auto-merge (may already be enabled or not supported)" >&2
|
echo "Warning: failed to enable auto-merge (may already be enabled or not supported)" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@ before execution. See the TOML file for details."
|
||||||
-H "Authorization: token ${FORGE_TOKEN}" \
|
-H "Authorization: token ${FORGE_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"${ops_api}/pulls/${pr_num}/merge" \
|
"${ops_api}/pulls/${pr_num}/merge" \
|
||||||
-d '{"Do":"merge","merge_when_checks_succeed":false}' >/dev/null 2>&1 || {
|
-d '{"Do":"merge","merge_when_checks_succeed":true}' >/dev/null 2>&1 || {
|
||||||
_vault_log "Warning: failed to enable auto-merge (may already be enabled or not supported)"
|
_vault_log "Warning: failed to enable auto-merge (may already be enabled or not supported)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue