ALTAPPS-1340: Shared, iOS code blanks if statement #1194
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: GPT Code Review | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
code-review: | |
if: ${{ contains(github.event.*.labels.*.name, 'gpt-review') }} | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
steps: | |
- uses: anc95/ChatGPT-CodeReview@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
LANGUAGE: English | |
OPENAI_API_ENDPOINT: https://api.openai.com/v1 | |
MODEL: gpt-3.5-turbo-16k # https://platform.openai.com/docs/models | |
PROMPT: 'Provide suggestions for improving the changes in this PR. If the PR has no clear issues, mention that no suggestions are needed. You must look at the code to see if there are any bugs, improvements, or optimizations. You must praise good changes. You must ask questions if something is not clear. This PR is for the Kotlin Multiplatform Mobile project, where the main languages are Kotlin and Swift.' | |
top_p: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-top_p | |
temperature: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature | |
max_tokens: 10000 | |
MAX_PATCH_LENGTH: 10000 # if the patch/diff length is large than MAX_PATCH_LENGTH, will be ignored and won't review. |