Skip to content

Commit

Permalink
add ai code reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
kheina committed Jan 14, 2025
1 parent da219ba commit cdd580e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Presubmit.ai

permissions:
contents: read
pull-requests: write
issues: write

on:
pull_request:
pull_request_review_comment:
types: [created]

jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Check required secrets
run: |
if [ -z "${{ secrets.LLM_API_KEY }}" ]; then
echo "Error: LLM_API_KEY secret is not configured"
exit 1
fi
- uses: presubmit/ai-reviewer@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
LLM_MODEL: "gemini-1.5-flash-latest"
2 changes: 1 addition & 1 deletion k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: fuzzly-backend
image: us-central1-docker.pkg.dev/kheinacom/fuzzly-repo/fuzzly-backend@sha256:98ee41408b83da92dab442c6c699084c838c881242226d520e34434961e0c843
image: us-central1-docker.pkg.dev/kheinacom/fuzzly-repo/fuzzly-backend@sha256:5ec2c52dc262dac11bc90ddb7af80a17292489ef0a68d20e4e53870ee8af0319
env:
- name: pod_ip
valueFrom:
Expand Down
14 changes: 7 additions & 7 deletions requirements.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
aerospike==8.0.0
aiohappyeyeballs==2.4.3
aiohttp==3.7.4.post0
aiohttp==3.11.11
aiosignal==1.3.1
anyio==4.6.2.post1
argon2-cffi-bindings==21.2.0
Expand All @@ -20,7 +20,7 @@ cryptography==43.0.3
dnspython==2.7.0
email_validator==2.2.0
fastapi-cli==0.0.5
fastapi==0.115.5
fastapi==0.115.6
frozenlist==1.5.0
gunicorn==23.0.0
h11==0.14.0
Expand All @@ -44,21 +44,21 @@ psycopg==3.2.3
pycparser==2.22
pycryptodome==3.21.0
pydantic==1.10.19
pydantic_core==2.18.4
pydantic_core==2.27.2
PyExifTool==0.5.6
Pygments==2.18.0
pyotp==2.9.0
python-dotenv==1.0.1
python-multipart==0.0.17
python-multipart==0.0.20
PyYAML==6.0.2
requests==2.32.3
rich==13.9.4
scipy==1.14.1
setuptools==66.1.1
setuptools==75.6.0
shellingham==1.5.4
sniffio==1.3.1
starlette==0.41.2
typer==0.13.0
starlette==0.41.3
typer==0.15.1
typing_extensions==4.12.2
ujson==5.5.0
urllib3==2.2.3
Expand Down
7 changes: 3 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ aerospike~=8.0.0
aiohttp>=3.7.4
argon2-cffi>=23.1.0
async-cache>=1.1.1
avrofastapi~=0.0.6
cryptography>=42.0.8
fastapi~=0.115.4
fastapi[standard]~=0.115.6
minio~=7.2.7
patreon~=0.5.0
pydantic~=1.10.17
pydantic_core~=2.18.4
pydantic~=1.10.19
pydantic_core~=2.27.2
pyotp~=2.9.0
python-multipart~=0.0.9
PyExifTool~=0.5.6
Expand Down

0 comments on commit cdd580e

Please sign in to comment.