{"action":"created","comment":{"url":"https://api.github.com/repos/jish/pre-commit/pulls/comments/51366878","id":51366878,"diff_hunk":"@@ -0,0 +1,44 @@\n+=begin\n+Copyright <%= copyright %>\n+\n+See the file LICENSE for copying permission.\n+=end\n+\n+if\n+  RUBY_VERSION == \"2.0.0\" # check Gemfile","path":"templates/gem/test/minitest_helper.rb","position":8,"original_position":8,"commit_id":"4d6d38e513e95c81742bbe8c20d43dbff8a528e2","original_commit_id":"4d6d38e513e95c81742bbe8c20d43dbff8a528e2","user":{"login":"mpapis","id":48054,"avatar_url":"https://avatars.githubusercontent.com/u/48054?v=3","gravatar_id":"","url":"https://api.github.com/users/mpapis","html_url":"https://github.com/mpapis","followers_url":"https://api.github.com/users/mpapis/followers","following_url":"https://api.github.com/users/mpapis/following{/other_user}","gists_url":"https://api.github.com/users/mpapis/gists{/gist_id}","starred_url":"https://api.github.com/users/mpapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpapis/subscriptions","organizations_url":"https://api.github.com/users/mpapis/orgs","repos_url":"https://api.github.com/users/mpapis/repos","events_url":"https://api.github.com/users/mpapis/events{/privacy}","received_events_url":"https://api.github.com/users/mpapis/received_events","type":"User","site_admin":false},"body":"coverage is calculated only on this single ruby, needed gems are restricted only to this ruby https://github.com/jish/pre-commit/pull/233/files#diff-528248a33c4d64f323b7c6b622a98c54R13\r\n\r\non one hand it was needed for older rubies (I think redcarpet was not installing)\r\nbut it also helps to save workers time / test time for what it counts","created_at":"2016-01-31T20:33:42Z","updated_at":"2016-01-31T20:33:42Z","html_url":"https://github.com/jish/pre-commit/pull/233#discussion_r51366878","pull_request_url":"https://api.github.com/repos/jish/pre-commit/pulls/233","_links":{"self":{"href":"https://api.github.com/repos/jish/pre-commit/pulls/comments/51366878"},"html":{"href":"https://github.com/jish/pre-commit/pull/233#discussion_r51366878"},"pull_request":{"href":"https://api.github.com/repos/jish/pre-commit/pulls/233"}}},"pull_request":{"url":"https://api.github.com/repos/jish/pre-commit/pulls/233","id":57778983,"html_url":"https://github.com/jish/pre-commit/pull/233","diff_url":"https://github.com/jish/pre-commit/pull/233.diff","patch_url":"https://github.com/jish/pre-commit/pull/233.patch","issue_url":"https://api.github.com/repos/jish/pre-commit/issues/233","number":233,"state":"open","locked":false,"title":"add cli new","user":{"login":"mpapis","id":48054,"avatar_url":"https://avatars.githubusercontent.com/u/48054?v=3","gravatar_id":"","url":"https://api.github.com/users/mpapis","html_url":"https://github.com/mpapis","followers_url":"https://api.github.com/users/mpapis/followers","following_url":"https://api.github.com/users/mpapis/following{/other_user}","gists_url":"https://api.github.com/users/mpapis/gists{/gist_id}","starred_url":"https://api.github.com/users/mpapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpapis/subscriptions","organizations_url":"https://api.github.com/users/mpapis/orgs","repos_url":"https://api.github.com/users/mpapis/repos","events_url":"https://api.github.com/users/mpapis/events{/privacy}","received_events_url":"https://api.github.com/users/mpapis/received_events","type":"User","site_admin":false},"body":"```bash\r\nUsage: pre-commit new plugin-name 'Author Name' author@email 'description of the plugin'\r\n```\r\n\r\n@jish I hope you like it :) is there anything I could do better (except adding tests)?","created_at":"2016-01-31T20:23:15Z","updated_at":"2016-01-31T20:33:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"302d63397e6700fe5454634796e40302b0a42852","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jish/pre-commit/pulls/233/commits","review_comments_url":"https://api.github.com/repos/jish/pre-commit/pulls/233/comments","review_comment_url":"https://api.github.com/repos/jish/pre-commit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jish/pre-commit/issues/233/comments","statuses_url":"https://api.github.com/repos/jish/pre-commit/statuses/4d6d38e513e95c81742bbe8c20d43dbff8a528e2","head":{"label":"jish:feature/cli_new_plugin","ref":"feature/cli_new_plugin","sha":"4d6d38e513e95c81742bbe8c20d43dbff8a528e2","user":{"login":"jish","id":1817,"avatar_url":"https://avatars.githubusercontent.com/u/1817?v=3","gravatar_id":"","url":"https://api.github.com/users/jish","html_url":"https://github.com/jish","followers_url":"https://api.github.com/users/jish/followers","following_url":"https://api.github.com/users/jish/following{/other_user}","gists_url":"https://api.github.com/users/jish/gists{/gist_id}","starred_url":"https://api.github.com/users/jish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jish/subscriptions","organizations_url":"https://api.github.com/users/jish/orgs","repos_url":"https://api.github.com/users/jish/repos","events_url":"https://api.github.com/users/jish/events{/privacy}","received_events_url":"https://api.github.com/users/jish/received_events","type":"User","site_admin":false},"repo":{"id":1123228,"name":"pre-commit","full_name":"jish/pre-commit","owner":{"login":"jish","id":1817,"avatar_url":"https://avatars.githubusercontent.com/u/1817?v=3","gravatar_id":"","url":"https://api.github.com/users/jish","html_url":"https://github.com/jish","followers_url":"https://api.github.com/users/jish/followers","following_url":"https://api.github.com/users/jish/following{/other_user}","gists_url":"https://api.github.com/users/jish/gists{/gist_id}","starred_url":"https://api.github.com/users/jish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jish/subscriptions","organizations_url":"https://api.github.com/users/jish/orgs","repos_url":"https://api.github.com/users/jish/repos","events_url":"https://api.github.com/users/jish/events{/privacy}","received_events_url":"https://api.github.com/users/jish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jish/pre-commit","description":"A slightly improved pre-commit hook for git","fork":false,"url":"https://api.github.com/repos/jish/pre-commit","forks_url":"https://api.github.com/repos/jish/pre-commit/forks","keys_url":"https://api.github.com/repos/jish/pre-commit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jish/pre-commit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jish/pre-commit/teams","hooks_url":"https://api.github.com/repos/jish/pre-commit/hooks","issue_events_url":"https://api.github.com/repos/jish/pre-commit/issues/events{/number}","events_url":"https://api.github.com/repos/jish/pre-commit/events","assignees_url":"https://api.github.com/repos/jish/pre-commit/assignees{/user}","branches_url":"https://api.github.com/repos/jish/pre-commit/branches{/branch}","tags_url":"https://api.github.com/repos/jish/pre-commit/tags","blobs_url":"https://api.github.com/repos/jish/pre-commit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jish/pre-commit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jish/pre-commit/git/refs{/sha}","trees_url":"https://api.github.com/repos/jish/pre-commit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jish/pre-commit/statuses/{sha}","languages_url":"https://api.github.com/repos/jish/pre-commit/languages","stargazers_url":"https://api.github.com/repos/jish/pre-commit/stargazers","contributors_url":"https://api.github.com/repos/jish/pre-commit/contributors","subscribers_url":"https://api.github.com/repos/jish/pre-commit/subscribers","subscription_url":"https://api.github.com/repos/jish/pre-commit/subscription","commits_url":"https://api.github.com/repos/jish/pre-commit/commits{/sha}","git_commits_url":"https://api.github.com/repos/jish/pre-commit/git/commits{/sha}","comments_url":"https://api.github.com/repos/jish/pre-commit/comments{/number}","issue_comment_url":"https://api.github.com/repos/jish/pre-commit/issues/comments{/number}","contents_url":"https://api.github.com/repos/jish/pre-commit/contents/{+path}","compare_url":"https://api.github.com/repos/jish/pre-commit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jish/pre-commit/merges","archive_url":"https://api.github.com/repos/jish/pre-commit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jish/pre-commit/downloads","issues_url":"https://api.github.com/repos/jish/pre-commit/issues{/number}","pulls_url":"https://api.github.com/repos/jish/pre-commit/pulls{/number}","milestones_url":"https://api.github.com/repos/jish/pre-commit/milestones{/number}","notifications_url":"https://api.github.com/repos/jish/pre-commit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jish/pre-commit/labels{/name}","releases_url":"https://api.github.com/repos/jish/pre-commit/releases{/id}","deployments_url":"https://api.github.com/repos/jish/pre-commit/deployments","created_at":"2010-11-29T20:02:17Z","updated_at":"2016-01-29T01:53:59Z","pushed_at":"2016-01-31T20:23:16Z","git_url":"git://github.com/jish/pre-commit.git","ssh_url":"git@github.com:jish/pre-commit.git","clone_url":"https://github.com/jish/pre-commit.git","svn_url":"https://github.com/jish/pre-commit","homepage":"http://jish.github.com/pre-commit/","size":11961,"stargazers_count":591,"watchers_count":591,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":82,"mirror_url":null,"open_issues_count":10,"forks":82,"open_issues":10,"watchers":591,"default_branch":"master"}},"base":{"label":"jish:master","ref":"master","sha":"66d7c455676590bc14a09245b7adff331235d120","user":{"login":"jish","id":1817,"avatar_url":"https://avatars.githubusercontent.com/u/1817?v=3","gravatar_id":"","url":"https://api.github.com/users/jish","html_url":"https://github.com/jish","followers_url":"https://api.github.com/users/jish/followers","following_url":"https://api.github.com/users/jish/following{/other_user}","gists_url":"https://api.github.com/users/jish/gists{/gist_id}","starred_url":"https://api.github.com/users/jish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jish/subscriptions","organizations_url":"https://api.github.com/users/jish/orgs","repos_url":"https://api.github.com/users/jish/repos","events_url":"https://api.github.com/users/jish/events{/privacy}","received_events_url":"https://api.github.com/users/jish/received_events","type":"User","site_admin":false},"repo":{"id":1123228,"name":"pre-commit","full_name":"jish/pre-commit","owner":{"login":"jish","id":1817,"avatar_url":"https://avatars.githubusercontent.com/u/1817?v=3","gravatar_id":"","url":"https://api.github.com/users/jish","html_url":"https://github.com/jish","followers_url":"https://api.github.com/users/jish/followers","following_url":"https://api.github.com/users/jish/following{/other_user}","gists_url":"https://api.github.com/users/jish/gists{/gist_id}","starred_url":"https://api.github.com/users/jish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jish/subscriptions","organizations_url":"https://api.github.com/users/jish/orgs","repos_url":"https://api.github.com/users/jish/repos","events_url":"https://api.github.com/users/jish/events{/privacy}","received_events_url":"https://api.github.com/users/jish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jish/pre-commit","description":"A slightly improved pre-commit hook for git","fork":false,"url":"https://api.github.com/repos/jish/pre-commit","forks_url":"https://api.github.com/repos/jish/pre-commit/forks","keys_url":"https://api.github.com/repos/jish/pre-commit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jish/pre-commit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jish/pre-commit/teams","hooks_url":"https://api.github.com/repos/jish/pre-commit/hooks","issue_events_url":"https://api.github.com/repos/jish/pre-commit/issues/events{/number}","events_url":"https://api.github.com/repos/jish/pre-commit/events","assignees_url":"https://api.github.com/repos/jish/pre-commit/assignees{/user}","branches_url":"https://api.github.com/repos/jish/pre-commit/branches{/branch}","tags_url":"https://api.github.com/repos/jish/pre-commit/tags","blobs_url":"https://api.github.com/repos/jish/pre-commit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jish/pre-commit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jish/pre-commit/git/refs{/sha}","trees_url":"https://api.github.com/repos/jish/pre-commit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jish/pre-commit/statuses/{sha}","languages_url":"https://api.github.com/repos/jish/pre-commit/languages","stargazers_url":"https://api.github.com/repos/jish/pre-commit/stargazers","contributors_url":"https://api.github.com/repos/jish/pre-commit/contributors","subscribers_url":"https://api.github.com/repos/jish/pre-commit/subscribers","subscription_url":"https://api.github.com/repos/jish/pre-commit/subscription","commits_url":"https://api.github.com/repos/jish/pre-commit/commits{/sha}","git_commits_url":"https://api.github.com/repos/jish/pre-commit/git/commits{/sha}","comments_url":"https://api.github.com/repos/jish/pre-commit/comments{/number}","issue_comment_url":"https://api.github.com/repos/jish/pre-commit/issues/comments{/number}","contents_url":"https://api.github.com/repos/jish/pre-commit/contents/{+path}","compare_url":"https://api.github.com/repos/jish/pre-commit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jish/pre-commit/merges","archive_url":"https://api.github.com/repos/jish/pre-commit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jish/pre-commit/downloads","issues_url":"https://api.github.com/repos/jish/pre-commit/issues{/number}","pulls_url":"https://api.github.com/repos/jish/pre-commit/pulls{/number}","milestones_url":"https://api.github.com/repos/jish/pre-commit/milestones{/number}","notifications_url":"https://api.github.com/repos/jish/pre-commit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jish/pre-commit/labels{/name}","releases_url":"https://api.github.com/repos/jish/pre-commit/releases{/id}","deployments_url":"https://api.github.com/repos/jish/pre-commit/deployments","created_at":"2010-11-29T20:02:17Z","updated_at":"2016-01-29T01:53:59Z","pushed_at":"2016-01-31T20:23:16Z","git_url":"git://github.com/jish/pre-commit.git","ssh_url":"git@github.com:jish/pre-commit.git","clone_url":"https://github.com/jish/pre-commit.git","svn_url":"https://github.com/jish/pre-commit","homepage":"http://jish.github.com/pre-commit/","size":11961,"stargazers_count":591,"watchers_count":591,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":82,"mirror_url":null,"open_issues_count":10,"forks":82,"open_issues":10,"watchers":591,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jish/pre-commit/pulls/233"},"html":{"href":"https://github.com/jish/pre-commit/pull/233"},"issue":{"href":"https://api.github.com/repos/jish/pre-commit/issues/233"},"comments":{"href":"https://api.github.com/repos/jish/pre-commit/issues/233/comments"},"review_comments":{"href":"https://api.github.com/repos/jish/pre-commit/pulls/233/comments"},"review_comment":{"href":"https://api.github.com/repos/jish/pre-commit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jish/pre-commit/pulls/233/commits"},"statuses":{"href":"https://api.github.com/repos/jish/pre-commit/statuses/4d6d38e513e95c81742bbe8c20d43dbff8a528e2"}}}}