Pull Bug is great at bugging you to merge or close your pull/merge requests.
Project description
Pull Bug is a script that can be run on a cron to notify you on Slack or Rocket Chat of all open pull and merge requests from GitHub or GitLab. This tool ensures requests never go unnoticed as it constantly bugs you to merge or close your work. This is perfect for finding old stale requests and staying on top of current ones. Pass in a few environment variables, setup a Slackbot or Rocket Chat integration and you're all set to be bugged by Pull Bug.
NOTE: Pull Bug works best if you have link unfurling turned off for GitHub and GitLab on Slack or Rocket Chat.
Install
# Copy and fill out the .env file
cp .env.example .env
# Install Python packages
pip3 install -r requirements.txt
Usage
Pull Bug is intended to be run on a cron, launch agent, or via Docker at whatever interval you'd like to be notified via Slack or Rocket Chat.
Pick and choose for your needs. Build only GitLab/GitHub messages, combine them into one. Send to Slack or Rocket Chat - maybe both!
# Build messages
github_message = pullbug.Requests.github()
gitlab_message = pullbug.Requests.gitlab()
message = github_message + gitlab_message
# Send messages
pullbug.Messages.rocket_chat(message)
pullbug.Messages.slack(message)
Commands
# Run our example
python3 example.py
# Run the following for Docker (environment variables must be set in docker-compose.yml)
docker-compose up -d
Development
# Install dev dependencies
pip3 install -r requirements.txt
# Run linting
pylint pullbug/*.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.