Skip to content

feat: added bedrock ai pr reviewer #4

feat: added bedrock ai pr reviewer

feat: added bedrock ai pr reviewer #4

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:
description:

Check failure on line 38 in .github/workflows/ai-pr-reviewer.yml

View workflow run for this annotation

GitHub Actions / Code Review

Invalid workflow file

The workflow is not valid. .github/workflows/ai-pr-reviewer.yml (Line: 38, Col: 13): A mapping was not expected .github/workflows/ai-pr-reviewer.yml (Line: 42, Col: 13): A mapping was not expected
'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'