-
Notifications
You must be signed in to change notification settings - Fork 8
ci: adds Claude bot #432
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
Merged
ci: adds Claude bot #432
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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,66 @@ | ||
| name: Claude | ||
| on: | ||
| issues: | ||
| types: | ||
| - opened | ||
| - assigned | ||
| issue_comment: | ||
| types: | ||
| - created | ||
| pull_request: | ||
| paths: | ||
| - .github/workflows/claude.yaml | ||
| pull_request_review: | ||
| types: | ||
| - submitted | ||
| pull_request_review_comment: | ||
| types: | ||
| - created | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number || github.run_id }} | ||
| cancel-in-progress: false | ||
| jobs: | ||
| default: | ||
| 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 == 'issues' && contains(github.event.issue.body, '@claude')) || | ||
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || | ||
| github.event_name == 'pull_request' | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| issues: write | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| fetch-depth: 0 | ||
tdstein marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - uses: aws-actions/configure-aws-credentials@v5 | ||
| with: | ||
| role-to-assume: arn:aws:iam::440849847947:role/claude-code-gha | ||
| role-session-name: gha-claude-code-action | ||
| aws-region: us-east-2 | ||
| - id: generate-token | ||
| uses: actions/create-github-app-token@v2 | ||
| with: | ||
| app-id: 1129585 | ||
| private-key: ${{ secrets.POSIT_CONNECT_PROJECTS_PEM }} | ||
| - uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| use_bedrock: true | ||
| github_token: ${{ steps.generate-token.outputs.token }} | ||
| branch_prefix: claude- | ||
| additional_permissions: "actions: read" | ||
| track_progress: true | ||
| prompt: | | ||
| You are a helpful AI assistant for code reviews and issue triage. | ||
| Respond to comments and issues that mention you with relevant code suggestions or triage actions. | ||
| If you cannot assist, politely inform the user. In your responses, don't be overly complimentary. | ||
| Stick to the facts and provide actionable advice. | ||
| claude_args: | | ||
| --model us.anthropic.claude-sonnet-4-5-20250929-v1:0 | ||
| --fallback-model us.anthropic.claude-haiku-4-5-20251001-v1:0 | ||
| --allowedTools mcp__github__create_pull_request,mcp__github__create_issue,mcp__github__search_issues,mcp__github__update_issue,mcp__github__create_pending_pull_request_review,mcp__github__add_pull_request_review_comment_to_pending_review,mcp__github__submit_pending_pull_request_review,mcp__github__get_pull_request_diff | ||
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.