diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5769ba3..f54ea57 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -30,8 +30,8 @@ jobs: cmd: pycodestyle --show-source --show-pep8 --exclude=src/tests python-version: 3.11 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - run: pip install --upgrade pip @@ -43,10 +43,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - run: pip install -r requirements.txt @@ -55,10 +55,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - run: pip install -r requirements.txt 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="" diff --git a/requirements.txt b/requirements.txt index 6a8afcb..726d65d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,23 +1,23 @@ -aiohttp==3.9.4 -aiosignal==1.3.1 -async-timeout==4.0.2 -attrs==23.1.0 -certifi==2024.7.4 -cffi==1.15.1 -charset-normalizer==3.1.0 -cryptography==42.0.4 -Deprecated==1.2.13 -frozenlist==1.3.3 -idna==3.7 -multidict==6.0.4 -openai==0.27.6 -pycparser==2.21 -PyGithub==1.58.2 -PyJWT==2.7.0 +Deprecated==1.2.14 +PyGithub==2.4.0 +PyJWT==2.9.0 PyNaCl==1.5.0 -PyYAML==6.0 -requests==2.32.2 -tqdm==4.66.3 -urllib3==2.2.2 -wrapt==1.15.0 -yarl==1.9.2 +PyYAML==6.0.2 +aiohttp==3.10.8 +aiosignal==1.3.1 +async-timeout==4.0.3 +attrs==24.2.0 +certifi==2024.8.30 +cffi==1.17.1 +charset-normalizer==3.3.2 +cryptography==43.0.1 +frozenlist==1.4.1 +idna==3.10 +multidict==6.1.0 +openai==1.50.2 +pycparser==2.22 +requests==2.32.3 +tqdm==4.66.5 +urllib3==2.2.3 +wrapt==1.16.0 +yarl==1.13.1 diff --git a/short_commit_sha b/short_commit_sha new file mode 100644 index 0000000..06950b5 --- /dev/null +++ b/short_commit_sha @@ -0,0 +1 @@ +a3eb0de