{"action":"created","comment":{"url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/comments/77713228","id":77713228,"diff_hunk":"@@ -0,0 +1,168 @@\n+#!/usr/bin/env ruby\n+\n+require \"stringio\"\n+require_relative \"../lib/rails_upgrade_analyzer\"\n+require_relative \"../../deprecation_summary\"","path":"lib/ci/bin/rails_upgrade_analyzer","position":5,"original_position":5,"commit_id":"486ac4294b2085fefeb85da43612b264ea8d4536","original_commit_id":"486ac4294b2085fefeb85da43612b264ea8d4536","user":{"login":"benjaminoakes","id":5323,"avatar_url":"https://avatars.githubusercontent.com/u/5323?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminoakes","html_url":"https://github.com/benjaminoakes","followers_url":"https://api.github.com/users/benjaminoakes/followers","following_url":"https://api.github.com/users/benjaminoakes/following{/other_user}","gists_url":"https://api.github.com/users/benjaminoakes/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminoakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminoakes/subscriptions","organizations_url":"https://api.github.com/users/benjaminoakes/orgs","repos_url":"https://api.github.com/users/benjaminoakes/repos","events_url":"https://api.github.com/users/benjaminoakes/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminoakes/received_events","type":"User","site_admin":false},"body":"Also, it feels strange having a `bin` directory within `lib`.  Can we move this part into the toplevel `bin`?","created_at":"2016-09-06T20:34:05Z","updated_at":"2016-09-06T20:34:05Z","html_url":"https://github.com/Liaison-Intl/upgrade_toolbelt/pull/2#discussion_r77713228","pull_request_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/comments/77713228"},"html":{"href":"https://github.com/Liaison-Intl/upgrade_toolbelt/pull/2#discussion_r77713228"},"pull_request":{"href":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/2","id":83513355,"html_url":"https://github.com/Liaison-Intl/upgrade_toolbelt/pull/2","diff_url":"https://github.com/Liaison-Intl/upgrade_toolbelt/pull/2.diff","patch_url":"https://github.com/Liaison-Intl/upgrade_toolbelt/pull/2.patch","issue_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues/2","number":2,"state":"open","locked":false,"title":"[NF-8840] Travis build hook for Rails 4 compat","user":{"login":"kstevens715","id":1191305,"avatar_url":"https://avatars.githubusercontent.com/u/1191305?v=3","gravatar_id":"","url":"https://api.github.com/users/kstevens715","html_url":"https://github.com/kstevens715","followers_url":"https://api.github.com/users/kstevens715/followers","following_url":"https://api.github.com/users/kstevens715/following{/other_user}","gists_url":"https://api.github.com/users/kstevens715/gists{/gist_id}","starred_url":"https://api.github.com/users/kstevens715/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kstevens715/subscriptions","organizations_url":"https://api.github.com/users/kstevens715/orgs","repos_url":"https://api.github.com/users/kstevens715/repos","events_url":"https://api.github.com/users/kstevens715/events{/privacy}","received_events_url":"https://api.github.com/users/kstevens715/received_events","type":"User","site_admin":false},"body":"See lib/ci/README.md for more details. This creates a script that\r\nwatches for Travis builds to complete. When one completes, if it's a PR\r\nit will count the number of failures, errors and passing tests for each\r\njob that allows failures (Rails 4 jobs). It then compares those against\r\nthe equivalent jobs from the last build to finish against the master\r\nbranch. Then it takes the results and posts a comment to the GitHub pull\r\nrequest with the results. If the pull request makes any sub-build worse,\r\nit labels the PR as Rails 4 Rejected. If it improves the situation or\r\nleaves it the same it will label it Rails 4 Accepted. If the master\r\nbuild and feature branch build do not have the same number of\r\nsub-builds, it labels it as needing to be rebased against master.\r\n\r\nDeploying this to GCE or running it locally requires you to set the\r\nGITHUB_TOKEN environment variable with a personal access token that you\r\nmust setup. See:\r\nhttps://help.github.com/articles/creating-an-access-token-for-command-line-use/\r\n\r\n## Unexpanded\r\n![selection_003](https://cloud.githubusercontent.com/assets/1191305/18219712/d1a60b76-7139-11e6-8627-83b2dc022e33.png)\r\n\r\n## Expanded\r\n![selection_004](https://cloud.githubusercontent.com/assets/1191305/18219716/d523345e-7139-11e6-8230-43db03a44418.png)\r\n\r\n","created_at":"2016-08-31T19:24:06Z","updated_at":"2016-09-06T20:34:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd4fbd11d97465274d7a9bfee3204c5a4cdc5833","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues/2/comments","statuses_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/statuses/486ac4294b2085fefeb85da43612b264ea8d4536","head":{"label":"Liaison-Intl:feature/NF-8840","ref":"feature/NF-8840","sha":"486ac4294b2085fefeb85da43612b264ea8d4536","user":{"login":"Liaison-Intl","id":1266718,"avatar_url":"https://avatars.githubusercontent.com/u/1266718?v=3","gravatar_id":"","url":"https://api.github.com/users/Liaison-Intl","html_url":"https://github.com/Liaison-Intl","followers_url":"https://api.github.com/users/Liaison-Intl/followers","following_url":"https://api.github.com/users/Liaison-Intl/following{/other_user}","gists_url":"https://api.github.com/users/Liaison-Intl/gists{/gist_id}","starred_url":"https://api.github.com/users/Liaison-Intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liaison-Intl/subscriptions","organizations_url":"https://api.github.com/users/Liaison-Intl/orgs","repos_url":"https://api.github.com/users/Liaison-Intl/repos","events_url":"https://api.github.com/users/Liaison-Intl/events{/privacy}","received_events_url":"https://api.github.com/users/Liaison-Intl/received_events","type":"Organization","site_admin":false},"repo":{"id":65028291,"name":"upgrade_toolbelt","full_name":"Liaison-Intl/upgrade_toolbelt","owner":{"login":"Liaison-Intl","id":1266718,"avatar_url":"https://avatars.githubusercontent.com/u/1266718?v=3","gravatar_id":"","url":"https://api.github.com/users/Liaison-Intl","html_url":"https://github.com/Liaison-Intl","followers_url":"https://api.github.com/users/Liaison-Intl/followers","following_url":"https://api.github.com/users/Liaison-Intl/following{/other_user}","gists_url":"https://api.github.com/users/Liaison-Intl/gists{/gist_id}","starred_url":"https://api.github.com/users/Liaison-Intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liaison-Intl/subscriptions","organizations_url":"https://api.github.com/users/Liaison-Intl/orgs","repos_url":"https://api.github.com/users/Liaison-Intl/repos","events_url":"https://api.github.com/users/Liaison-Intl/events{/privacy}","received_events_url":"https://api.github.com/users/Liaison-Intl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Liaison-Intl/upgrade_toolbelt","description":"Utilities to help upgrading a ~250K line Rails app","fork":false,"url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt","forks_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/forks","keys_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/teams","hooks_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/hooks","issue_events_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues/events{/number}","events_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/events","assignees_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/assignees{/user}","branches_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/branches{/branch}","tags_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/tags","blobs_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/refs{/sha}","trees_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/statuses/{sha}","languages_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/languages","stargazers_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/stargazers","contributors_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/contributors","subscribers_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/subscribers","subscription_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/subscription","commits_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/commits{/sha}","git_commits_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/commits{/sha}","comments_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/comments{/number}","issue_comment_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues/comments{/number}","contents_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/contents/{+path}","compare_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/merges","archive_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/downloads","issues_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues{/number}","pulls_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls{/number}","milestones_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/milestones{/number}","notifications_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/labels{/name}","releases_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/releases{/id}","deployments_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/deployments","created_at":"2016-08-05T15:15:34Z","updated_at":"2016-08-26T14:49:09Z","pushed_at":"2016-09-02T22:19:30Z","git_url":"git://github.com/Liaison-Intl/upgrade_toolbelt.git","ssh_url":"git@github.com:Liaison-Intl/upgrade_toolbelt.git","clone_url":"https://github.com/Liaison-Intl/upgrade_toolbelt.git","svn_url":"https://github.com/Liaison-Intl/upgrade_toolbelt","homepage":null,"size":25,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Liaison-Intl:master","ref":"master","sha":"56da0f682eaba6c711875545d4290c5c2ba574c2","user":{"login":"Liaison-Intl","id":1266718,"avatar_url":"https://avatars.githubusercontent.com/u/1266718?v=3","gravatar_id":"","url":"https://api.github.com/users/Liaison-Intl","html_url":"https://github.com/Liaison-Intl","followers_url":"https://api.github.com/users/Liaison-Intl/followers","following_url":"https://api.github.com/users/Liaison-Intl/following{/other_user}","gists_url":"https://api.github.com/users/Liaison-Intl/gists{/gist_id}","starred_url":"https://api.github.com/users/Liaison-Intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liaison-Intl/subscriptions","organizations_url":"https://api.github.com/users/Liaison-Intl/orgs","repos_url":"https://api.github.com/users/Liaison-Intl/repos","events_url":"https://api.github.com/users/Liaison-Intl/events{/privacy}","received_events_url":"https://api.github.com/users/Liaison-Intl/received_events","type":"Organization","site_admin":false},"repo":{"id":65028291,"name":"upgrade_toolbelt","full_name":"Liaison-Intl/upgrade_toolbelt","owner":{"login":"Liaison-Intl","id":1266718,"avatar_url":"https://avatars.githubusercontent.com/u/1266718?v=3","gravatar_id":"","url":"https://api.github.com/users/Liaison-Intl","html_url":"https://github.com/Liaison-Intl","followers_url":"https://api.github.com/users/Liaison-Intl/followers","following_url":"https://api.github.com/users/Liaison-Intl/following{/other_user}","gists_url":"https://api.github.com/users/Liaison-Intl/gists{/gist_id}","starred_url":"https://api.github.com/users/Liaison-Intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liaison-Intl/subscriptions","organizations_url":"https://api.github.com/users/Liaison-Intl/orgs","repos_url":"https://api.github.com/users/Liaison-Intl/repos","events_url":"https://api.github.com/users/Liaison-Intl/events{/privacy}","received_events_url":"https://api.github.com/users/Liaison-Intl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Liaison-Intl/upgrade_toolbelt","description":"Utilities to help upgrading a ~250K line Rails app","fork":false,"url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt","forks_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/forks","keys_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/teams","hooks_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/hooks","issue_events_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues/events{/number}","events_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/events","assignees_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/assignees{/user}","branches_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/branches{/branch}","tags_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/tags","blobs_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/refs{/sha}","trees_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/statuses/{sha}","languages_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/languages","stargazers_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/stargazers","contributors_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/contributors","subscribers_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/subscribers","subscription_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/subscription","commits_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/commits{/sha}","git_commits_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/git/commits{/sha}","comments_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/comments{/number}","issue_comment_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues/comments{/number}","contents_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/contents/{+path}","compare_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/merges","archive_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/downloads","issues_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues{/number}","pulls_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls{/number}","milestones_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/milestones{/number}","notifications_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/labels{/name}","releases_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/releases{/id}","deployments_url":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/deployments","created_at":"2016-08-05T15:15:34Z","updated_at":"2016-08-26T14:49:09Z","pushed_at":"2016-09-02T22:19:30Z","git_url":"git://github.com/Liaison-Intl/upgrade_toolbelt.git","ssh_url":"git@github.com:Liaison-Intl/upgrade_toolbelt.git","clone_url":"https://github.com/Liaison-Intl/upgrade_toolbelt.git","svn_url":"https://github.com/Liaison-Intl/upgrade_toolbelt","homepage":null,"size":25,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/2"},"html":{"href":"https://github.com/Liaison-Intl/upgrade_toolbelt/pull/2"},"issue":{"href":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues/2"},"comments":{"href":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Liaison-Intl/upgrade_toolbelt/statuses/486ac4294b2085fefeb85da43612b264ea8d4536"}}}}
{"actor":{"display_login":"benjaminoakes"}}