Skip to content

Randomly assign a team member to a Github PR using Slack

Notifications You must be signed in to change notification settings

DJRHails/github-slack-pr-review

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github PR assignment with Slack

Whenever a PR comes in, this Github webhook can randomly assign a member of your team to review it.

Testing

rake

Heroku deployment

  1. Add an Incoming Webhook to Slack and copy the URL that is provided to you.
  2. Create a new application on Heroku.
  3. Add an environment variable called SLACK_ENDPOINT, and paste in your Slack webhook url.
  4. Add an environment variable called SLACK_NAMES. It should be a comma-separated list of Slack usernames.
  5. Add an environment variable called GITHUB_NAMES. It should be a comma-separated list of Github usernames in the same order as SLACK_NAMES.
  6. Push to Heroku.
  7. Go to your app on Github > Settings > Webhooks > Add Webhook.
  8. Enter the URL to your Heroku app in the Payload URL field.
  9. Choose 'Let me select individual events' and choose only 'Pull Requests'.

You should be good to go!

About

Randomly assign a team member to a Github PR using Slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%