diff --git a/action.yml b/action.yml index 901ed1e..dbc17c0 100644 --- a/action.yml +++ b/action.yml @@ -48,4 +48,3 @@ runs: INPUT_MODEL: ${{ inputs.model }} OPENAI_API_KEY: ${{ inputs.api-key }} GITHUB_BRANCH: ${{ github.head_ref }} - #GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/dev/01.env b/dev/01.env new file mode 100644 index 0000000..93b95dc --- /dev/null +++ b/dev/01.env @@ -0,0 +1,5 @@ +INPUT_MODEL="text-davinci-003" +INPUT_TEMPLATE="" +INPUT_TEMPLATE_FILEPATH=".github/PULL_REQUEST_TEMPLATE.md" +INPUT_HEADER="Based on the output of the command \`git diff\`, could you please generate a pull request description using the provided information? Be concise. Description must follow this format:\n" +GITHUB_ACTION_PATH="" diff --git a/dev/02.env b/dev/02.env new file mode 100644 index 0000000..ae8e9c1 --- /dev/null +++ b/dev/02.env @@ -0,0 +1,5 @@ +INPUT_MODEL="text-davinci-003" +INPUT_TEMPLATE="# Description\n## What is in this PR ?" +INPUT_TEMPLATE_FILEPATH="" +INPUT_HEADER="Based on the output of the command \`git diff\`, could you please generate a pull request description using the provided information? Be concise. Description must follow this format:\n" +GITHUB_ACTION_PATH="" diff --git a/dev/dev.sh b/dev/dev.sh index 2a835a0..177fe34 100755 --- a/dev/dev.sh +++ b/dev/dev.sh @@ -1,7 +1,9 @@ #!/bin/sh set -o errexit -# shellcheck source=dev/env-01.sh +set -o allexport +# shellcheck source=dev/01.env . "$1" +set +o allexport FILE='short_commit_sha' CONTENT="$(git rev-parse --short HEAD)" diff --git a/dev/env-01.sh b/dev/env-01.sh deleted file mode 100644 index 506abc0..0000000 --- a/dev/env-01.sh +++ /dev/null @@ -1,5 +0,0 @@ -export INPUT_MODEL="text-davinci-003" -export INPUT_TEMPLATE="" -export INPUT_TEMPLATE_FILEPATH=".github/PULL_REQUEST_TEMPLATE.md" -export INPUT_HEADER="Based on the output of the command \`git diff\`, could you please generate a pull request description using the provided information? Be concise. Description must follow this format:\n" -export GITHUB_ACTION_PATH="" diff --git a/dev/env-02.sh b/dev/env-02.sh deleted file mode 100644 index 2a1bbfa..0000000 --- a/dev/env-02.sh +++ /dev/null @@ -1,5 +0,0 @@ -export INPUT_MODEL="text-davinci-003" -export INPUT_TEMPLATE="# Description\n## What is in this PR ?" -export INPUT_TEMPLATE_FILEPATH="" -export INPUT_HEADER="Based on the output of the command \`git diff\`, could you please generate a pull request description using the provided information? Be concise. Description must follow this format:\n" -export GITHUB_ACTION_PATH=""