-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore(github): Add workflow to trigger triage-issue skill
#19358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+71
−4
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cfe5986
chore(github): Add triage issue workflow
s1gr1d 4ffeacb
only allow numbers
s1gr1d cd54092
only manual trigger
s1gr1d f7c9ff2
change permissions to read; add env
s1gr1d 7b4a83e
Merge branch 'develop' into sig/github-action-new-issue
s1gr1d 352b551
format
s1gr1d 5dc0dc7
fix prompt
s1gr1d 19eb6a1
add ""
s1gr1d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| name: Triage Issue | ||
|
|
||
| on: | ||
| # Only trigger this workflow manually for now | ||
| # issues: | ||
| # types: [opened] | ||
| workflow_dispatch: | ||
| inputs: | ||
| issue_number: | ||
| description: 'Issue number (e.g., 1234)' | ||
| required: true | ||
| type: number | ||
|
|
||
| # Per-issue concurrency to prevent duplicate analysis | ||
| concurrency: | ||
| group: triage-issue-${{ github.event.issue.number || github.event.inputs.issue_number }} | ||
cursor[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| triage-issue: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| issues: read | ||
| pull-requests: read | ||
| # Only run for Bug or Feature issues (automatic mode) | ||
| if: | | ||
| github.event_name == 'workflow_dispatch' || | ||
| contains(github.event.issue.labels.*.name, 'Bug') || | ||
| contains(github.event.issue.labels.*.name, 'Feature') | ||
|
|
||
| steps: | ||
| - name: Parse issue number | ||
| id: parse-issue | ||
| env: | ||
| EVENT_NAME: ${{ github.event_name }} | ||
| EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
| INPUT_ISSUE_NUMBER: ${{ github.event.inputs.issue_number }} | ||
| run: | | ||
| if [ "$EVENT_NAME" = "issues" ]; then | ||
| ISSUE_NUM="$EVENT_ISSUE_NUMBER" | ||
| else | ||
| ISSUE_NUM="$INPUT_ISSUE_NUMBER" | ||
| fi | ||
|
|
||
| echo "issue_number=$ISSUE_NUM" >> "$GITHUB_OUTPUT" | ||
| echo "Processing issue #$ISSUE_NUM in CI mode" | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: develop | ||
|
|
||
| - name: Run Claude triage | ||
| uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| settings: | | ||
| { | ||
| "env": { | ||
| "LINEAR_CLIENT_ID": "${{ secrets.LINEAR_CLIENT_ID }}", | ||
| "LINEAR_CLIENT_SECRET": "${{ secrets.LINEAR_CLIENT_SECRET }}" | ||
| } | ||
| } | ||
sentry[bot] marked this conversation as resolved.
Show resolved
Hide resolved
cursor[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| prompt: | | ||
| /triage-issue ${{ steps.parse-issue.outputs.issue_number }} --ci | ||
| IMPORTANT: Do NOT dismiss any alerts. Do NOT wait for approval. | ||
| claude_args: '--max-turns 20' | ||
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.