Skip to content

Workflow file for this run

name: Code Review with AI
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
jobs:
code-review:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyGitHub openai langchain langchain-community langchain-openai langchain-pinecone tiktoken pinecone-client
- name: Run Code Reviewer
run: python workflow_scripts/code_review.py
env:
OPEN_AI_KEY: ${{ secrets.OPEN_AI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
PINECONE_REGION: us-east-1