Refactor/api separate #gpt #21
Workflow file for this run
This file contains hidden or 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: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| if: ${{ contains(github.event.pull_request.title, '#gpt') || contains(github.event.pull_request.body, '#gpt') }} | |
| steps: | |
| - uses: anc95/ChatGPT-CodeReview@main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| OPENAI_API_KEY: ${{ secrets.GPT_KEY }} | |
| # optional | |
| LANGUAGE: Korean | |
| max_tokens: 10000 | |
| MAX_PATCH_LENGTH: 10000 | |
| ACTIONS_STEP_DEBUG: true | |
| IGNORE_PATTERNS: /dist, /node_modules,*.md # Regex pattern to ignore files, separated by comma | |
| INCLUDE_PATTERNS: '*.js, *.ts, *.jsx, *.tsx' # glob pattern or regex pattern to include files, separated by comma |