From c1dec141147ebe22531b0e226cfe06a1e54ba696 Mon Sep 17 00:00:00 2001 From: Antoine Barthelemy Date: Sat, 28 Sep 2024 19:24:37 +0200 Subject: [PATCH 1/8] feat(dev): update shell --- action.yml | 1 - dev/01.env | 5 +++++ dev/02.env | 5 +++++ dev/dev.sh | 4 +++- dev/env-01.sh | 5 ----- dev/env-02.sh | 5 ----- 6 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 dev/01.env create mode 100644 dev/02.env delete mode 100644 dev/env-01.sh delete mode 100644 dev/env-02.sh 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="" From 2a449db4cf915b094532099bf69153f43abd9dc1 Mon Sep 17 00:00:00 2001 From: Antoine Barthelemy Date: Sat, 28 Sep 2024 19:30:53 +0200 Subject: [PATCH 2/8] feat(dev): delete python 3.7 support --- .github/workflows/python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5769ba3..6a4a720 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -43,7 +43,7 @@ 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"] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -55,7 +55,7 @@ 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"] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 From d7f8308836c30f4cd88328aa38b68783a9b288b1 Mon Sep 17 00:00:00 2001 From: Antoine Barthelemy Date: Sat, 28 Sep 2024 19:32:35 +0200 Subject: [PATCH 3/8] feat(dev): add python 3.12, 3.13, 3.14, 3.15 support --- .github/workflows/python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 6a4a720..e69c849 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -55,7 +55,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 From 4dce08bee0b6571d83ccc39324d90f35fd2be903 Mon Sep 17 00:00:00 2001 From: Antoine Barthelemy Date: Sat, 28 Sep 2024 19:34:53 +0200 Subject: [PATCH 4/8] feat(dev): update github workflow --- .github/workflows/python.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index e69c849..561075e 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 @@ -45,8 +45,8 @@ jobs: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] 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 @@ -57,8 +57,8 @@ jobs: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] 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 From 03da696388333aca8db7432584d2e37b9352d5b0 Mon Sep 17 00:00:00 2001 From: Antoine Barthelemy Date: Sat, 28 Sep 2024 19:36:55 +0200 Subject: [PATCH 5/8] feat(dev): python bound to 3.12, no further versions --- .github/workflows/python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 561075e..f54ea57 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -55,7 +55,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 From a01bdf79c769b3ab688eddd0cddc3a4108e7b6a4 Mon Sep 17 00:00:00 2001 From: Antoine Barthelemy Date: Tue, 1 Oct 2024 15:39:36 +0200 Subject: [PATCH 6/8] update --- requirements.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6a8afcb..50a048f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,8 @@ +Deprecated==1.2.13 +PyGithub==1.58.2 +PyJWT==2.7.0 +PyNaCl==1.5.0 +PyYAML==6.0.2 aiohttp==3.9.4 aiosignal==1.3.1 async-timeout==4.0.2 @@ -6,16 +11,11 @@ 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 +frozenlist==1.4.1 +idna==3.10 multidict==6.0.4 openai==0.27.6 pycparser==2.21 -PyGithub==1.58.2 -PyJWT==2.7.0 -PyNaCl==1.5.0 -PyYAML==6.0 requests==2.32.2 tqdm==4.66.3 urllib3==2.2.2 From 4c527b8c00489464eff1d7e07604243a42bf058d Mon Sep 17 00:00:00 2001 From: Antoine Barthelemy Date: Tue, 1 Oct 2024 15:43:34 +0200 Subject: [PATCH 7/8] update pkg --- requirements.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/requirements.txt b/requirements.txt index 50a048f..2b5d1b0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,9 +15,9 @@ frozenlist==1.4.1 idna==3.10 multidict==6.0.4 openai==0.27.6 -pycparser==2.21 -requests==2.32.2 -tqdm==4.66.3 -urllib3==2.2.2 -wrapt==1.15.0 -yarl==1.9.2 +pycparser==2.22 +requests==2.32.3 +tqdm==4.66.5 +urllib3==2.2.3 +wrapt==1.16.0 +yarl==1.13.1 From a3eb0de215089e25b91412e6008516510822f72e Mon Sep 17 00:00:00 2001 From: Antoine Barthelemy Date: Tue, 1 Oct 2024 15:47:32 +0200 Subject: [PATCH 8/8] update pkg --- requirements.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/requirements.txt b/requirements.txt index 2b5d1b0..726d65d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,20 +1,20 @@ -Deprecated==1.2.13 -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.2 -aiohttp==3.9.4 +aiohttp==3.10.8 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 +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.0.4 -openai==0.27.6 +multidict==6.1.0 +openai==1.50.2 pycparser==2.22 requests==2.32.3 tqdm==4.66.5