https://github.com/robinpowered/commodus
Always ensure pull requests have the thumbs up before merging
https://github.com/robinpowered/commodus
Last synced: 11 months ago
JSON representation
Always ensure pull requests have the thumbs up before merging
- Host: GitHub
- URL: https://github.com/robinpowered/commodus
- Owner: robinpowered
- License: mit
- Created: 2014-12-15T20:29:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-25T15:08:18.000Z (over 9 years ago)
- Last Synced: 2025-03-24T04:43:40.209Z (about 1 year ago)
- Language: Ruby
- Homepage: https://jacobstruzik.com/commodus/
- Size: 32.2 KB
- Stars: 17
- Watchers: 22
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Robinpowered Commodus
A Sinatra powered, heroku ready application that will track open GitHub pull requests, and search comments for the :+1:

## Usage
Simply run `bundler install` and `ruby app.rb` to startup the Sinatra app locally.
Use `git push heroku master` after cloning to deploy to a heroku server.
Setup a [personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) with `repo` scope with `export ACCESS_TOKEN=token` or `heroku config:set ACCESS_TOKEN=token`.
Setup a GitHub webhook on your repo/organization that points to `https://yourserver.herokuapp.com/hooks` with `pull_request`, `issue_comment`, `pull_request_review`, and `pull_request_review_comment` feeds. Make sure to set your `SECRET_TOKEN` env variable.
By default, Commodus will look for comments in the open PR for a `:+1:` or a `:-1:` and calculate the net change per comment.
If you want to change the default number of :+1:s needed for a repository set the `required_plus_ones` POST parameter in your webhook.
[](https://heroku.com/deploy)