Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 0 additions & 143 deletions .github/workflows/claude-respond.yml

This file was deleted.

15 changes: 4 additions & 11 deletions .github/workflows/claude-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ concurrency:
jobs:
review:
# Skip forks and third-party bots. Allow human-authored PRs plus PRs created
# by our triage workflow on same-repository claude/issue-* branches.
# by Imagile Bot through our triage workflow on claude/issue-* branches.
if: |
github.event.pull_request.head.repo.fork == false &&
(
!endsWith(github.event.pull_request.user.login, '[bot]') ||
contains(github.event.pull_request.user.login, 'claude') ||
github.event.pull_request.user.login == 'claude[bot]' ||
(
github.event.pull_request.user.login == 'github-actions[bot]' &&
github.event.pull_request.user.login == 'imagile-bot[bot]' &&
startsWith(github.event.pull_request.head.ref, 'claude/issue-')
)
)
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
# A workflow-token fallback is required when this workflow itself changes,
# because the Claude app validates it against the default-branch version.
github_token: ${{ steps.review-workflow.outputs.changed == 'true' && github.token || '' }}
allowed_bots: '*'
allowed_bots: 'imagile-bot'
track_progress: true
classify_inline_comments: 'true'
include_fix_links: 'true'
Expand Down Expand Up @@ -96,13 +96,6 @@ jobs:
- `gh pr review ${{ github.event.pull_request.number }} --approve --body "..."` — if no substantive issues found
- `gh pr review ${{ github.event.pull_request.number }} --request-changes --body "..."` — if there are blocking problems

Exception when PR AUTHOR and REVIEW ACTOR are both `github-actions[bot]`: GitHub
prevents that workflow identity from approving or requesting changes on its own PR.
In that case, use
`gh pr review ${{ github.event.pull_request.number }} --comment --body "..."`
and begin the body with either `PASS —` or `BLOCKING —`. The successful/failed
review workflow check is the merge gate for that self-review case.

Do not leave a human-authored PR without a formal APPROVE or REQUEST_CHANGES state.
claude_args: |
--model sonnet --allowedTools "mcp__github__pull_request_review_write,mcp__github__add_comment_to_pending_review,mcp__github__add_issue_comment,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr review:*),Bash(gh api repos/*/issues/*/comments:*),Bash(gh api repos/*/issues/comments/*:*),Bash(gh api repos/*/pulls/*/reviews:*),Bash(gh api repos/*/pulls/*/comments:*)"
Loading