feat: added bedrock ai pr reviewer #4
Workflow file for this run
This file contains 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
name: Code Review | ||
permissions: | ||
id-token: write | ||
contents: read | ||
pull-requests: write | ||
on: | ||
pull_request: | ||
pull_request_review_comment: | ||
types: [created] | ||
concurrency: | ||
group: | ||
${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}-${{ github.event_name == 'pull_request_review_comment' && 'pr_comment' || 'pr' }} | ||
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }} | ||
jobs: | ||
review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: configure aws credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | ||
role-session-name: gha-session | ||
aws-region: us-east-2 | ||
- name: PR review | ||
uses: tmokmss/bedrock-pr-reviewer@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
debug: true | ||
review_simple_changes: true | ||
review_comment_lgtm: true | ||
bedrock_light_model: | ||
description: | ||
Check failure on line 38 in .github/workflows/ai-pr-reviewer.yml
|
||
'Model to use for simple tasks like summarizing diff on a file.' | ||
default: 'us.anthropic.claude-3-haiku-20240307-v1:0' | ||
bedrock_heavy_model: | ||
description: 'Model to use for complex tasks such as code reviews.' | ||
default: 'us.anthropic.claude-3-5-sonnet-20240620-v1:0' |