fix(ci): replace gh CLI with curl for Gitea API compatibility #193

Closed
core-devops wants to merge 1 commits from infra/fix-issue-75-gh-cli-gitea-sweep into main

1 Commits

Author SHA1 Message Date
c02146a6bc fix(ci): replace gh CLI with curl for Gitea API compatibility
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
sop-tier-check / tier-check (pull_request) Failing after 5s
audit-force-merge / audit (pull_request) Has been skipped
Issue #75 sweep — remaining `gh` CLI calls that fail on Gitea:

1. ci.yml (canvas-deploy-reminder): gh api POST commit comments
   → replaced with curl to Gitea's
     POST /repos/{owner}/{repo}/comments/{commit_sha}
   using -F form upload (matches gh --field behaviour)

2. check-merge-group-trigger.yml: gh api required_status_checks
   → replaced with curl to Gitea's
     GET /repos/{owner}/{repo}/branches/{branch}
     jq-ing .status_check_contexts (Gitea's field name, not
     GitHub's nested .protection.required_status_checks.contexts)

pr-guards.yml: gh pr merge/comment already gated behind
is_gitea != 'true' (GitHub-only path), no change needed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 23:13:25 +00:00