FightClub

FightClub

Fight Club will notify users of pull requests of any conflicts against other open pull requests.

Installation

Add this line to your application's Gemfile:

gem 'fight-club'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fight-club

Configuration

Add the following to an initializer in your codebase (config/initializers/fight_club.rb in Rails):

FightClub.configure do |config|
  config.repo = 'baxterthehacker/public-repo' # the repo with org/user name
  config.oauth = '12345678901234567890abcdef' # your oauth token
  config.repo_name = 'public-repo' # the repo name alone
  config.uri = '[email protected]:baxterthehacker/public-repo.git' # the URI to use to clone the repo
  config.master_branch = 'master' # what branch to run fight club against
  config.repos_directory = '/tmp' # where to store repos
end

Usage

Add this to your code:

FightClub.begin(pull_request)

Where pull_request looks like a payload from a Github webhook.

Why?

Sometimes you want to move fast! It's annoying to have conflicts with a master branch after another branch gets merged.