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
1 change: 1 addition & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
Use `mcp__github_inline_comment__create_inline_comment` to highlight specific code issues.
Only post GitHub comments - don't submit review text as messages.
Be welcoming but thorough in your review. Use inline comments for code-specific feedback.
Write short and concise comments/reviews. Write comments only if there is a specific issue.

claude_args: |
--mcp-config '{"mcpServers": {"sequential-thinking": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]}}}'
Expand Down
44 changes: 25 additions & 19 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# count: "50"
# since: "180d"

triage:
labelling:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -38,33 +38,36 @@ jobs:
id-token: write
steps:
- name: Determine body and id
env:
ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
ANTHROPIC_MODEL: ${{ secrets.ANTHROPIC_MODEL }}
ANTHROPIC_AUTH_TOKEN: ${{ secrets.ANTHROPIC_AUTH_TOKEN }}
id: vars
id: params
run: |
if [ "${{ github.event_name }}" = "issues" ]; then
echo "NBR=${{ github.event.issue.number }}" >> $GITHUB_ENV
echo "TITLE=${{ github.event.issue.title }}" >> $GITHUB_ENV
echo "BODY=${{ github.event.issue.body }}" >> $GITHUB_ENV
echo "AUTHOR=${{ github.event.issue.user.login }}" >> $GITHUB_ENV
echo "NBR=${{ github.event.issue.number }}" >> $GITHUB_OUTPUT
echo "TITLE=${{ github.event.issue.title }}" >> $GITHUB_OUTPUT
echo "BODY=${{ github.event.issue.body }}" >> $GITHUB_OUTPUT
echo "AUTHOR=${{ github.event.issue.user.login }}" >> $GITHUB_OUTPUT
echo "TYPE=issue" >> $GITHUB_OUTPUT
elif [ "${{ github.event_name }}" = "pull_request" ]; then
echo "NBR=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
echo "TITLE=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
echo "BODY=${{ github.event.pull_request.body }}" >> $GITHUB_ENV
echo "AUTHOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV
echo "NBR=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT
echo "TITLE=${{ github.event.pull_request.title }}" >> $GITHUB_OUTPUT
echo "BODY=${{ github.event.pull_request.body }}" >> $GITHUB_OUTPUT
echo "AUTHOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_OUTPUT
echo "TYPE=pull_request" >> $GITHUB_OUTPUT
fi

- uses: anthropics/claude-code-action@v1
env:
ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
ANTHROPIC_MODEL: ${{ secrets.ANTHROPIC_MODEL }}
ANTHROPIC_AUTH_TOKEN: ${{ secrets.ANTHROPIC_AUTH_TOKEN }}
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_AUTH_TOKEN }}
prompt: |
REPO: ${{ github.repository }}
TITLE: ${{ vars.TITLE }}
BODY: ${{ vars.BODY }}
ISSUE/PR NUMBER: ${{ vars.NBR }}
AUTHOR: ${{ vars.AUTHOR }}
TITLE: ${{ steps.params.outputs.TITLE }}
BODY: ${{ steps.params.outputs.BODY }}
TYPE: ${{ steps.params.outputs.TYPE }}
ISSUE/PR NUMBER: ${{ steps.params.outputs.NBR }}
AUTHOR: ${{ steps.params.outputs.AUTHOR }}

If you need more context on the project, read the LLMs documentation: ./docs/static/llms.txt

Expand All @@ -77,9 +80,12 @@ jobs:

Based on your analysis, add the appropriate labels using:
`gh issue edit [number] --add-label "label1,label2"`
or
`gh pr edit [number] --add-label "label1,label2"`

If it appears to be a duplicate, post a comment mentioning the original issue.

# security: a prompt injection can be used to update comments in the current issue/PR.
claude_args: |
--mcp-config '{"mcpServers": {"sequential-thinking": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]}}}'
--allowedTools "mcp__sequential-thinking__sequentialthinking,Bash(gh issue:*),Bash(gh search:*),Bash(gh label list)"
--allowedTools "mcp__sequential-thinking__sequentialthinking,Bash(gh issue:*),Bash(gh pr:*),Bash(gh search:*),Bash(gh label list)"
Loading