This repository contains a demo implementation of a Slack bot designed to integrate with PR Pilot via the /pilot slash command.
For more information, check out the blog post.
- Follow the Slack Bolt Getting Started Guide to create your Slack app
- Install PR Pilot into your repository
- Create an API Key in your PR Pilot Dashboard
- Clone the repository.
- Install dependencies using
pip install -r requirements.txt. - Set up the necessary environment variables (
SLACK_SIGNING_SECRET,SLACK_BOT_TOKEN,SLACK_APP_TOKEN,PR_PILOT_API_KEY). - Run the bot using
python app.py.
Use the /pilot command in Slack to interact with the bot. It will handle the command and provide feedback directly in Slack.