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
38 lines · 1.1 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 id-token: write
22
23 steps:
24 - name: Checkout repository
25 uses: actions/checkout@v4
26
27 - name: Run Claude Code for Issue Triage
28 timeout-minutes: 5
29 uses: anthropics/claude-code-action@v1
30 env:
31 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 with:
33 github_token: ${{ secrets.GITHUB_TOKEN }}
34 allowed_non_write_users: "*"
35 prompt: "/triage-issue REPO: ${{ github.repository }} ISSUE_NUMBER: ${{ github.event.issue.number }} EVENT: ${{ github.event_name }}"
36 anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
37 claude_args: |
38 --model claude-opus-4-6