spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / .github / workflows / claude-issue-triage.yml
39 lines · 1.2 KBRaw
1name: Claude Issue Triage
2on:
3 issues:
4 types: [opened]
5 issue_comment:
6 types: [created]
7
8jobs:
9 triage-issue:
10 runs-on: ubuntu-latest
11 timeout-minutes: 10
12 if: >-
13 github.event_name == 'issues' ||
14 (github.event_name == 'issue_comment' && !github.event.issue.pull_request && github.event.comment.user.type != 'Bot')
15 concurrency:
16 group: issue-triage-${{ github.event.issue.number }}
17 cancel-in-progress: true
18 permissions:
19 contents: read
20 issues: write
21
22 steps:
23 - name: Checkout repository
24 uses: actions/checkout@v4
25
26 - name: Run Claude Code for Issue Triage
27 timeout-minutes: 5
28 uses: anthropics/claude-code-action@v1
29 env:
30 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 GH_REPO: ${{ github.repository }}
32 CLAUDE_CODE_SCRIPT_CAPS: '{"edit-issue-labels.sh":2}'
33 with:
34 github_token: ${{ secrets.GITHUB_TOKEN }}
35 allowed_non_write_users: "*"
36 prompt: "/triage-issue REPO: ${{ github.repository }} ISSUE_NUMBER: ${{ github.event.issue.number }} EVENT: ${{ github.event_name }}"
37 anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
38 claude_args: |
39 --model claude-opus-4-6