An autonomous agent created using crewAI and Langchain to automate your code review workflow
The agent will first get the tree structure of given github repository and then for every file, it will create full paths for that file from tree structure
From the given file path, it will then use github API to get the file content
Once it gets the file content, it will review the given file and make changes in code if needed.
The review will be added in notion document using notion API client.
- Python and anaconda installed on your machine
- OpenAI api key
- Github Personal Access Token (PAT)
- Notion api key
- Clone the repository
- Create a file called
constants.py
in same folder and store all of your api keys like this
OPENAI_API_KEY = <key_here>
GITHUB_SECRET_KEY = <key_here>
NOTION_API_KEY = <key_here>
- Open any jupyter notebook from repository and import the
constants.py
file in it - Select your existing python environment or create one using anaconda
- Run the code