No commit activity in last 3 years
No release in over 3 years
A Lita handler to help you keep track of your pull requests.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0

Runtime

 Project Readme

lita-pullrequests

A Lita handler to help you keep track of your pull requests. It can automatically post in your channels on a schedule and tell you about pull requests that need attention in all of your repositories.

  1. Organize pull requests with labels on GitHub
  2. Lita will remind you about them later

Installation

Add lita-pullrequests to your Lita instance's Gemfile:

gem "lita-pullrequests"

Configuration

Pull request summaries include three sections:

  1. ❗ Pull Requests that need a code review
  2. 💭 Pull Requests that need quality assurance
  3. ✅ Pull Requests that are ready to be merged

These are sorted based on GitHub labels attached to pull requests. You can configure your labels in your lita_config.

You will also need a personal access token for an account that has access to all of the repositories that are to be scraped. You can get one of these here. You'll need to store the access token as an environment variable on Heroku or your server.

Add the following configuration lines to your lita_config:

config.handlers.pullrequests.access_token = ENV["GITHUB_ACCESS_TOKEN"]
config.handlers.pullrequests.repos = ["username/reponame"]
config.handlers.pullrequests.review_label = "needs-review"
config.handlers.pullrequests.merge_label  = "ready-for-merge"
config.handlers.pullrequests.qa_label     = "qa-needed"

Usage

> @robot: give me something to review for reponame
...

> @robot: summarize pull requests
....

> @robot: set pull requests reminder for 0 20 * * 1-5
....

> @robot: show pull requests reminder
....

> @robot: stop reminding me about pull requests
....

License

MIT