Allow POST to /issues/{id}/labels in gh permission hook (#2490)
## Summary
- Added `/issues/{id}/labels` as an allowed POST endpoint in
`gh-permission-hook.py`, enabling automated label management (e.g.,
adding `cc:request` labels to issues/PRs)
- Added 5 test cases to `good_commands.txt` covering the new endpoint
- All 921 hook tests pass
## Test plan
- [x] Hook unit tests pass (`python3
.claude/hooks/tests/test_gh_permission_hook.py` — 921/921)
- [x] Vitest suite passes (661/661)
#skip-bugbot
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2490">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Allow POST to /issues/{id}/labels in gh-permission-hook so automation
can add labels (e.g., cc:request) without manual approval. Added five
allowed-command tests covering the new endpoint.
<sup>Written for commit ffceaef93ca64b2944523244a187bbd418d9743a.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论