diff --git a/lib/branch-protection.sh b/lib/branch-protection.sh index 340d53a..6fa1e59 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 POST \ + -X PUT \ -H "Authorization: token ${FORGE_TOKEN}" \ -H "Content-Type: application/json" \ "${api_url}/branches/${branch}/protection" \