]> git.ipfire.org Git - thirdparty/openwrt.git/commit
github: add Claude code review workflow triggered by /claude comment 22556/head
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Mar 2026 03:00:51 +0000 (04:00 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Mar 2026 18:51:30 +0000 (19:51 +0100)
commitc0e75c9de6f263a584567d25013c52843eb4ec5e
tree262e0ffb671b8888828a4ca801b6e48fa66a47d9
parentadc1406f32fdf9c43fd4b356bb90f4fe6df75308
github: add Claude code review workflow triggered by /claude comment

Add claude-code-review.yml using anthropics/claude-code-action@v1.
The review runs when a PR comment containing "/claude" is posted,
avoiding unnecessary API usage on every push.

Uses issue_comment trigger restricted to PR comments only. Only
triggers for users with write access (OWNER, MEMBER, COLLABORATOR)
and when the comment body contains "/claude", preventing any runner
from being allocated for unrelated comments. A short domain hint
steers the review toward OpenWrt embedded Linux conventions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Link: https://github.com/openwrt/openwrt/pull/22556
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
.github/workflows/claude-code-review.yml [new file with mode: 0644]