Compare Linker Build Status Gem Version

Create GitHub's compare view URLs for pull request from diff of Gemfile.lock (and post comment to pull request).

screen shot 2014-01-27 at 2 25 14 am

GitHub Compare View rocks.But diff of Gemfile.lock sucks. So I made Compare Linker.

Usage

require 'compare_linker'

ENV['OCTOKIT_ACCESS_TOKEN'] = 'xxx'

compare_linker = CompareLinker.new('masutaka/compare_linker', '17')
compare_linker.formatter = CompareLinker::Formatter::Markdown.new
comment = compare_linker.make_compare_links.to_a.join("\n")
compare_linker.add_comment('masutaka/compare_linker', '17', comment)

Rack app for listening GitHub Webhook

There's rack application for Compare Linker with GitHub's Webhook.

https://github.com/kyanny/compare_linker_rack_app