Skip to content

Stop checking pull requests manually all day and git slackin instead!

License

Notifications You must be signed in to change notification settings

SimonImbrogno/git-slackin

 
 

Repository files navigation

Git Slackin'

Get notified better when using Github Pull Requests and Slack.

Features and commands listed below

Setup

  • Clone the repo
  • Install dependencies npm i
  • Create a config file
    • Name it development.json
    • Base it off of config/example.json
  • Create a user_list.json with all the users you want involved
    • Base it off of example_user_list.json
    • Note: future goal is for this to live in a DB and for users to sign themselves up
  • Run service npm start
    • If running on a local machine use ngrok to make endpoint available to the internet
  • Create a Webhook for your repo
    • Please include all Pull Request related events (not all used yet)
  • Start making Pull Requests!

Current Features

  • Announces itself to admin and channel (if provided)
  • Request reviews and send messages when opening a PR
    • Git-slackin will pick 2 random, requestable users from the user_list.json
    • Assigns them and requests a review from them on Github (Note: These actions happen on the behalf of the user whose personal access token is in the config)
    • Notifies the requested reviewers via a DM with a link to the PR
      • This happens if someone uses the Github UI to request a review as well.
    • Notifies the PR Opener who has been requested
  • Get notified when your PR is reviewed
    • Git-Slackin will message the opener of the PR informing them of who submitted a review, and in what state (approved, commented, requested changes)
  • Don't bother people when then are not requestable
  • Allow users to change their requestability
  • Respond to some DM commands

Commands (via Slack DMs)

Note All commands are case insensitive

Everyone Commands

Get Command List

  • Say help
  • Lists the commands

Bench Yourself

  • Say stop
  • This means you will not be requested by Git Slackin'

Unbench Yourself

  • Say start
  • You will now be requestable by Git Slackin'

Notifcations

Turn on

  • Say notify or unmute

Turn off

  • Say silence, or mute

Am I requestable?

  • Say status
  • Get your github and slack usernames and your requestability status

Admin/Manager commands

What's everyone's state?

  • Say overview
  • Lists benched and available users, like the boot message

Shut it all down

  • Say shutdown
  • Exits the git slackin' process.

About

Stop checking pull requests manually all day and git slackin instead!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%