PullPal combines the capabilities of OpenAI/Meta-LLama 🧠 and Azure DevOps ⚙️ to automate the review process for pull requests. when triggred by webhook Pullpal fetches active pull requests from Azure DevOps, analyzes the code changes using OpenAI's specified model or Meta-llama, and posts the review comments directly on the pull request threads.
- main - for OpenAI intergration
- Meta-llama - for Meta-llama intergration
How to Use:
Create a .env file in the project root.
OPENAI_API_KEY: Your OpenAI API key. (main branch)
META_LLAMA_URL: your meta_llama_url. (meta_llama branch)
AZURE_ORG_URL: Your Azure DevOps organization URL.
AZURE_PAT: Your Azure DevOps Personal Access Token.
PROJECT_NAME: Your Azure DevOps project name.
REPO_ID: Your Azure DevOps repository ID.
IGNORED_AUTHORS: A comma-separated list of authors to ignore.
IGNORED_FILE_TYPES: List of igonred file types to avoid review.
LOG_PATH: Log path.
LOG_LEVEL: Requested log level for logging.
PRINT_TO_CONSOLE: BOOLEAN eithr print or not to the console.
- Build the Docker Image 🛠️:
docker build -t pullpal-bot .
2.Run the Docker Container 🐋:
docker run -d --env-file .env pullpal-bot
1.Create a a virtual env,
python3 -m venv venv
2.Activate the virtual environment:
Linux:
source venv/bin/activate
Windows:
call venv\Scripts\activate
- Install Dependencies:
pip install -r requirements.txt
4.Run Pullpal
python pullpal.py
check .env file for customization,prompt is hardcoded but fill free to adjust
MIT License