diff --git a/.github/workflows/openai.yml b/.github/workflows/openai.yml new file mode 100644 index 0000000..5eadc80 --- /dev/null +++ b/.github/workflows/openai.yml @@ -0,0 +1,22 @@ +name: Open AI Code Reviewer + +on: + pull_request: + types: + - opened + - synchronize +permissions: write-all +jobs: + review: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: AI Code Reviewer + uses: mrc0der/ai-codereviewer@main + with: + 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 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index eec5cf5..073cfd5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ -i https://pypi.org/simple altair==5.5.0; python_version >= '3.9' -attrs==24.3.0; python_version >= '3.8' +attrs==25.1.0; python_version >= '3.8' blinker==1.9.0; python_version >= '3.9' -cachetools==5.5.0; python_version >= '3.7' -certifi==2024.12.14; python_version >= '3.6' +cachetools==5.5.1; python_version >= '3.7' +certifi==2025.1.31; python_version >= '3.6' charset-normalizer==3.4.1; python_version >= '3.7' click==8.1.8; python_version >= '3.7' gitdb==4.0.12; python_version >= '3.7' @@ -15,18 +15,18 @@ jsonschema-specifications==2024.10.1; python_version >= '3.9' markdown-it-py==3.0.0; python_version >= '3.8' markupsafe==3.0.2; python_version >= '3.9' mdurl==0.1.2; python_version >= '3.7' -narwhals==1.21.1; python_version >= '3.8' -numpy==2.2.1; python_version >= '3.10' +narwhals==1.23.0; python_version >= '3.8' +numpy==2.2.2; python_version >= '3.10' packaging==24.2; python_version >= '3.8' pandas==2.2.3; python_version >= '3.9' pillow==11.1.0; python_version >= '3.9' protobuf==5.29.3; python_version >= '3.8' -pyarrow==18.1.0; python_version >= '3.9' +pyarrow==19.0.0; python_version >= '3.9' pydeck==0.9.1; python_version >= '3.8' pygments==2.19.1; python_version >= '3.8' python-dateutil==2.9.0.post0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' -pytz==2024.2 -referencing==0.35.1; python_version >= '3.8' +pytz==2025.1 +referencing==0.36.2; python_version >= '3.8' requests==2.32.3; python_version >= '3.8' rich==13.9.4; python_full_version >= '3.8.0' rpds-py==0.22.3; python_version >= '3.9' @@ -37,6 +37,6 @@ tenacity==9.0.0; python_version >= '3.8' toml==0.10.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3' tornado==6.4.2; python_version >= '3.8' typing-extensions==4.12.2; python_version >= '3.8' -tzdata==2024.2; python_version >= '2' +tzdata==2025.1; python_version >= '2' urllib3==2.3.0; python_version >= '3.9' watchdog==6.0.0; platform_system != 'Darwin'