Skip to content

Publish your team's pull requests to a Slack Channel

Notifications You must be signed in to change notification settings

mishguruorg/gitguru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Guru

A bot that checks Pull Requests and posts them to slack.

Features

  • Can be scheduled to run at a regular interval
  • One slack post per Pull Request
  • Ignores PRs in draft mode
  • Posts are concise but contain useful information
    • Author
    • Title
    • Link to Pull Request
    • First sentence of description
    • Number of comments
    • Number of files changed
    • Time of last update
    • Link to clubhouse card

Environment Variables

SLACK_CHANNEL
The name of the Slack channel to post to. e.g. todo
SLACK_WEBHOOK
The incoming webhook URL for your slack channel
GITHUB_ORG
The name of your github organization. e.g. mishguruorg
GITHUB_TOKEN
Your Github API token
CLUBHOUSE_ACCOUNT
Your clubhouse account e.g. mishguru
SCHEDULE
(optional) A cron job format, used to run at regular intervals. e.g. 0 7 * * 1-5

Run with Docker

docker run -it --rm --name gitguru \
  -e "SLACK_CHANNEL=dev-todo" \
  -e "SLACK_WEBHOOK=https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
  -e "GITHUB_ORG=mishguruorg" \
  -e "GITHUB_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
  -e "CLUBHOUSE_ACCOUNT=mishguru" \
  -e "SCHEDULE=0 7 * * 1-5" \
  mishguru/gitguru:latest

About

Publish your team's pull requests to a Slack Channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published