Skip to content

DRab7792/pr-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This tool is meant to watch open pull requests in Github repositories. The requests will be split into your own PRs and other users' PRs. If someone else's pull request needs reviewing, it will be marked accordingly. After the user makes the appropriate changes to their pull request, it will also be marked so you can then approve their changes and they can merge their PR. If your pull request has changes requested on it, it will be marked in a different list. The page will also automatically refresh every minute, while the backend will pull the latest repository data every five minutes. High priority pull requests will be shown in red and cause the favicon to change, alerting you that a pull request needs your attention. Note that only the top 100 repos and 100 pull requests will be displayed.

Installation

If you want to install this on a server you need to first create a Github OAuth App, following the steps here. The callback URL should be your server URL with /callback as the path. Next, you need to specify the following environment variables:

  • CLIENT_ID (required) - Get this from your OAuth application setup in Github.
  • CLIENT_SECRET (required) - Get this from your OAuth application setup in Github.
  • BASE_URL (required) - This is the URL of where the app will live without a trailing slash.
  • PORT (optional) - If you want to specify a different port, you can. Otherwise this will default to port 8080.

If you are installing on Heroku, be sure to use the heroku/nodejs buildpack.

Screenshots

The following image shows the status of other users' pull requests in a particular repository and categorizes them by priority and whether or not you are reviewing that pull request.

image

This image shows the status of your own pull requests in a particular repository and categorizes them by priority and whether or not the pull request is in review.

image

TODO

  • Add unit tests

  • Refactor the server.js functions into a seperate file and class

  • Add more information about each Pull Request to the lists

  • Add a tab for stale branches with no Pull Requests with no commits in over 3 months

  • Add a tab for statistics about how long each Pull Request is open