diff --git a/README.md b/README.md index aa454a5..2541407 100644 --- a/README.md +++ b/README.md @@ -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" ``` diff --git a/action.yml b/action.yml index 4a5db05..7f79b7b 100644 --- a/action.yml +++ b/action.yml @@ -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"