Compare commits
1 commit
7b692175a9
...
ff79cb15a5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff79cb15a5 |
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ EOF
|
||||||
else
|
else
|
||||||
# Create new protection
|
# Create new protection
|
||||||
http_code=$(curl -s -o /dev/null -w "%{http_code}" \
|
http_code=$(curl -s -o /dev/null -w "%{http_code}" \
|
||||||
-X PUT \
|
-X POST \
|
||||||
-H "Authorization: token ${FORGE_TOKEN}" \
|
-H "Authorization: token ${FORGE_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"${api_url}/branches/${branch}/protection" \
|
"${api_url}/branches/${branch}/protection" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue