chore(claude): close remaining gaps in the merge gate
Gitea's issue comments endpoint ignores paging, so the hook now reads all comments in one call; the paged loop refused every merge. Any command that calls gitea.sh and mentions a merge must now be the strict form as a whole, while commands that only name gitea.sh as a file (git add, git diff) pass. The body may only pin the head commit, and curl calls have time limits so the hook can't time out into a non-blocking error.
This commit is contained in:
1 parent
f45fb7421a
commit
1e02dd5930
4 files changed
+59
-35
No files matched your search
@@ -68,7 +68,8 @@ done
|
||||
url=$(<"$config/url")
|
||||
token=$(<"$config/token")
|
||||
|
||||
args=(-sS --fail-with-body -X "$method" -H "Accept: application/json")
|
||||
# Time limits keep callers such as guard-merge.sh within their hook timeout.
|
||||
args=(-sS --fail-with-body --connect-timeout 5 --max-time 20 -X "$method" -H "Accept: application/json")
|
||||
# The token header is read from stdin so it never shows up in the process list.
|
||||
args+=(-H @-)
|
||||
if [[ -n "$body" ]]; then
|
||||
|
||||
Reference in new issue
Block a user