coreos/pr-nagbot

Name: pr-nagbot

Owner: CoreOS

Description: A bot written in Rust that looks at all PRs specified in a config file and posts them to a specified Slack channel

Created: 2017-08-15 18:36:16.0

Updated: 2018-03-08 02:08:22.0

Pushed: 2017-08-18 23:09:46.0

Homepage: null

Size: 18

Language: Rust

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

PR Nagbot

This is a simple application written in Rust that fetches all open PRs in repos specified in a config file, and then posts them to a Slack channel.

Setup

To build this program, install the Rust toolchain and cargo, and install the program by running:

o install https://github.com/coreos/pr-nagbot.git

To run this program, either create a config file in your current directory called pr-nagbot.yaml or specify a different location for a config when running the nagbot using the -c commandline argument.

To allow the PR Nagbot to interact with GitHub and Slack, you need to set it up for those services as well. To generate a GitHub access token, log into your account and go to https://github.com/settings/tokens. There, you can generate a token with the “repo” scope to allow pr-nagbot to view both public and private repos, and then copy that access token to the config file.

To get a webhook URL for Slack, go to https://api.slack.com/, select “Start Building”, and then name your app and specify what Organization you want to add it to. Then, use the left hand bar to go to “Incoming Webhooks”, activate the feature and add a new webhook for the channel you want. Finally, use the left hand bar to go to “OAuth and Permissions” and add “incoming-webhook” to the permission scopes.

Once you have both the GitHub access token and the Slack incoming webhook set up in your config file, the app is ready to use.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.