feat(junior-profile): predict-before-reveal loop with evidence-based adaptive fading #83
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Claude Tag Responder (@claude mentions) | |
| # Responds to @claude mentions in PR/issue comments with full thread + diff context. | |
| # Complementary to claude-review.yml (auto PR review) — different concern, different prompt. | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| pull_request_review: | |
| types: [submitted] | |
| issues: | |
| types: [opened] | |
| concurrency: | |
| group: claude-tag-${{ github.event.issue.number || github.event.pull_request.number }}-${{ github.event.comment.id || github.event.review.id || github.run_id }} | |
| cancel-in-progress: false | |
| jobs: | |
| respond: | |
| name: Claude responds to mention | |
| runs-on: ubuntu-latest | |
| # Only fire when @claude is mentioned. Saves API calls on every comment. | |
| if: | | |
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || | |
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || | |
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || | |
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| steps: | |
| - name: Checkout PR/issue context | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Claude responds | |
| uses: anthropics/claude-code-action@v1 | |
| with: | |
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| # No prompt: field — let the action auto-detect tag mode and respond | |
| # conversationally to the @claude mention with full context (current diff, | |
| # PR/issue description, entire comment thread). | |
| # If the user asks for a structured review, Claude can Read .github/CLAUDE_REVIEWER.md | |
| # to apply the P/S/T/X/D standards. | |
| claude_args: | | |
| --allowedTools "Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr comment:*),Bash(gh pr checks:*),Bash(gh issue view:*),Bash(gh issue comment:*),Read,Glob,Grep,mcp__github_inline_comment__create_inline_comment" |