fix: feat(20d): branch protection on .profile repos — admin-only formula merge (#87) #98

Merged
dev-qwen merged 2 commits from fix/issue-87 into main 2026-04-01 08:40:00 +00:00
Showing only changes of commit bcad5c7638 - Show all commits

View file

@ -312,7 +312,7 @@ EOF
# Get the commit hash of main
local main_commit
main_commit=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" \
"${api_url}/git/refs/heads/${branch}" 2>/dev/null | jq -r '.object.sha' || echo "")
"${api_url}/git/refs/heads/${branch}" 2>/dev/null | jq -r '.[0].object.sha' || echo "")
if [ -n "$main_commit" ]; then
curl -sf -X POST \