diff --git a/lib/branch-protection.sh b/lib/branch-protection.sh index 6fa1e59..340d53a 100644 --- a/lib/branch-protection.sh +++ b/lib/branch-protection.sh @@ -104,7 +104,7 @@ EOF else # Create new protection http_code=$(curl -s -o /dev/null -w "%{http_code}" \ - -X PUT \ + -X POST \ -H "Authorization: token ${FORGE_TOKEN}" \ -H "Content-Type: application/json" \ "${api_url}/branches/${branch}/protection" \