mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-22 02:26:48 +00:00
add readme entry and github action input
This commit is contained in:
parent
50095030c4
commit
247088e438
2 changed files with 5 additions and 0 deletions
|
@ -43,6 +43,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
|
OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
|
||||||
|
EXTRA_INSTRUCTIONS: "- never comment on file formatting and linting issues" # Optional: defaults to ""
|
||||||
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
|
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,10 @@ inputs:
|
||||||
description: "OpenAI API model."
|
description: "OpenAI API model."
|
||||||
required: false
|
required: false
|
||||||
default: "gpt-4"
|
default: "gpt-4"
|
||||||
|
EXTRA_INSTRUCTIONS:
|
||||||
|
description: "Extra instructions to be added to the text prompt."
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
exclude:
|
exclude:
|
||||||
description: "Glob patterns to exclude files from the diff analysis"
|
description: "Glob patterns to exclude files from the diff analysis"
|
||||||
required: false
|
required: false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue