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
@@ -42,7 +42,7 @@ Only commit when I explicitly say "commit" for that change. A yes to a question
|
||||
|
||||
The remote is a self-hosted Gitea, so `gh` doesn't work. For PRs and their CI status use `.claude/scripts/gitea.sh` (acts as `claude-bot`), e.g. `.claude/scripts/gitea.sh GET '/repos/kasun/homelab-ansible/pulls?state=open'`. Use it for PRs, and for issues when I ask. Reading from Gitea is free.
|
||||
|
||||
Open and merge PRs through `/merge`: typing it is my OK to commit, open a PR and merge for that run. Outside `/merge`, ask first. Every merge needs a passing review comment for the PR's head commit; `.claude/hooks/guard-merge.sh` refuses the merge otherwise. Before deploy-on-merge is enabled, revisit this: PRs that deploy will need my approval.
|
||||
Open and merge PRs through `/merge`: typing it is my OK to commit, open a PR and merge for that run. Outside `/merge`, ask first. Every merge call asks for permission (also inside `/merge`), and `.claude/hooks/guard-merge.sh` refuses it unless the PR's newest review comment is a pass for its head commit. Before deploy-on-merge is enabled, revisit this: PRs that deploy will need my approval.
|
||||
|
||||
## Verifying changes
|
||||
|
||||
|
||||
Reference in new issue
Block a user