Skip to content

Commit

Permalink
[COZY-243] feat: PR 리뷰봇 모델 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
eple0329 committed Oct 3, 2024
1 parent 6ff46a0 commit 4848435
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 102 deletions.
85 changes: 0 additions & 85 deletions .github/scripts/pr_review.py

This file was deleted.

25 changes: 8 additions & 17 deletions .github/workflows/pr_review_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,16 @@ jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
- name: AWS Bedrock Code Review Action
uses: eple0329/AWSBedrock-CodeReview@v1.1.0
with:
aws-access-key-id: ${{ secrets.REVIEW_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.REVIEW_AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
aws-region: 'us-east-1'
github-token: ${{ secrets.REVIEW_GITHUB_TOKEN }}
model: 'amazon.titan-text-premier-v1:0'
max-tokens: 1000
language: 'Korean'

- name: Install dependencies
run: |
pip install boto3 requests
- name: Run PR Review
env:
GITHUB_TOKEN: ${{ secrets.REVIEW_GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REVIEW_AWS_ACCESS_KEY_ID: ${{ secrets.REVIEW_AWS_ACCESS_KEY_ID }}
REVIEW_AWS_SECRET_ACCESS_KEY: ${{ secrets.REVIEW_AWS_SECRET_ACCESS_KEY }}
run: |
python .github/scripts/pr_review.py

0 comments on commit 4848435

Please sign in to comment.