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
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user