Skip to content

feat: added bedrock ai pr reviewer #5

feat: added bedrock ai pr reviewer

feat: added bedrock ai pr reviewer #5

Workflow file for this run

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: 'us.anthropic.claude-3-haiku-20240307-v1:0'
bedrock_heavy_model: 'us.anthropic.claude-3-5-sonnet-20240620-v1:0'