From 247088e438b3d983bb9517de4d0f5ad3d84daa7f Mon Sep 17 00:00:00 2001 From: Mark Arts Date: Thu, 29 Feb 2024 09:34:12 +0100 Subject: [PATCH] add readme entry and github action input --- README.md | 1 + action.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 566a3ea..248a2be 100644 --- a/README.md +++ b/README.md @@ -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) OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} 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 ``` diff --git a/action.yml b/action.yml index 976aed7..8b446c1 100644 --- a/action.yml +++ b/action.yml @@ -11,6 +11,10 @@ inputs: description: "OpenAI API model." required: false default: "gpt-4" + EXTRA_INSTRUCTIONS: + description: "Extra instructions to be added to the text prompt." + required: false + default: "" exclude: description: "Glob patterns to exclude files from the diff analysis" required: false