Origin/null 311 divide user db #8
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 From ChatGPT | |
permissions: | |
contents: read | |
pull-requests: write | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
code-review: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Get base branch name | |
id: get-base-branch | |
run: echo "BASE_BRANCH=$(jq -r .pull_request.base.ref "$GITHUB_EVENT_PATH")" >> $GITHUB_ENV | |
- name: Gather diff of all files | |
run: git diff origin/$BASE_BRANCH -- > combined_diff.txt | |
- name: Perform Code Review | |
uses: anc95/ChatGPT-CodeReview@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
LANGUAGE: Korean | |
MODEL: gpt-4o-mini | |
top_p: 1 | |
temperature: 1 | |
max_tokens: 5000 | |
MAX_PATCH_LENGTH: 5000 | |
patch_file: combined_diff.txt |