chore(claude): close remaining gaps in the merge gate
Checks / Secret Scan (pull_request) Successful in 8s
Checks / Lint (pull_request) Successful in 9s

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:
kasun committed 2026-11-27 03:57:18 +01:00
1 parent f45fb7421a
commit 1e02dd5930
4 files changed
+59 -35

No files matched your search

+2 -1
View File
@@ -98,7 +98,8 @@
},
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/guard-merge.sh"
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/guard-merge.sh",
"timeout": 90
}
]
}