This is a slack bot that is integrated with git to post some awesome notifications in slack
If you are wanting to build and develop this, you will need the following items installed.
- Python version 3.7+
- Pip
- Redis
git clone https://github.com/parithiban/git-slack-bot.git
cd git-slack-bot
make all
source venv/bin/activate
create a file .env similar to .env.example with updated tokens
Inside the virtual environment execute
make run
Inside the virtual environment execute
export FLASK_APP=manage.py
make run-queue
To monitor the queue
http://{YOUR_URL}/queue/
https://api.slack.com/slash-commands#creating_commands
Once you have installed it in your slack workspace you need to give below scope access
channels:read
chat:write:bot
chat:write:user
im:read
users:read
users.profile:read
Run the command
ngrok http 5000
You will get the http url replace that in Request URL in slash command
Run /git help
to list the commands
Run /git pr your_repo