chore: Update name and default exclude patterns in action.yml and README.md files

This commit is contained in:
Will Hohyon Ryu 2024-03-07 19:58:47 -08:00
commit f28f411604
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +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)
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas. defaults to "**/*.json, **/*.md, yarn.lock, package-lock.json"
language: "english" # Optional: defaults to "english"
```

View file

@ -1,4 +1,4 @@
name: "AI Code Review Action"
name: "AI Code Review Action with Language Settings"
description: "Perform code reviews and comment on diffs using OpenAI API."
inputs:
GITHUB_TOKEN:
@ -18,7 +18,7 @@ inputs:
exclude:
description: "Glob patterns to exclude files from the diff analysis"
required: false
default: ""
default: "**/*.json, **/*.md, yarn.lock, package-lock.json"
runs:
using: "node20"
main: "dist/index.js"