fix: delete component also delete reports #1076
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: GPT Review | |
permissions: write-all | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
review: | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'gpt review') }} | |
runs-on: ubuntu-latest | |
name: GPT Review | |
steps: | |
- uses: anc95/ChatGPT-CodeReview@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
# Optional | |
LANGUAGE: Chinese | |
# MODEL: gpt-4 | |
max_tokens: 10000 | |
MAX_PATCH_LENGTH: 10000 # if the patch/diff length is larger than MAX_PATCH_LENGTH, will be ignored and won't review. By default, with no MAX_PATCH_LENGTH set, there is also no limit for the patch/diff length. | |
# top_p: 1 | |
# temperature: 1 |