chore(claude): make the merge gate fail closed
The first review found ways around the hook: unexpected errors exited with non-blocking codes, unusual spellings of the merge path skipped it, and an older pass outlived a newer fail. The ask rule for merges is back as a second layer, so merging outside /merge is enforced, not just instructed.
This commit is contained in:
1 parent
737a3a29ec
commit
f45fb7421a
5 files changed
+73
-39
No files matched your search
@@ -5,10 +5,11 @@
|
||||
# This script calls the Gitea API instead, as the claude-bot account, so PRs
|
||||
# show up as the bot's work and it only has the rights you gave it.
|
||||
#
|
||||
# Scope: used for PRs only (list, open, check CI status, merge after your OK).
|
||||
# Technically it can call any endpoint; CLAUDE.md limits its use to PRs.
|
||||
# Scope: PRs (list, open, check CI status, comment, merge), and issues when the
|
||||
# user asks. Technically it can call any endpoint; CLAUDE.md limits its use.
|
||||
# In .claude/settings.json, GET and POST (e.g. opening a PR) run without a
|
||||
# prompt. Merging a PR (POST .../merge), PATCH, PUT and DELETE always ask first.
|
||||
# prompt. Merging a PR (POST .../merge), PATCH, PUT and DELETE always ask first,
|
||||
# and .claude/hooks/guard-merge.sh refuses a merge without a passing review.
|
||||
#
|
||||
# Usage: gitea.sh METHOD PATH [BODY]
|
||||
# METHOD GET | POST | PATCH | PUT | DELETE
|
||||
|
||||
Reference in new issue
Block a user