{"action":"created","comment":{"url":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/comments/56937661","id":56937661,"diff_hunk":"@@ -285,6 +285,67 @@ def test_incremental_commit_does_not_automatically_add_files\n     end\n   end\n \n+  def test_commit_with_message_type_message\n+    Dir.chdir(TMP_DIR) do\n+      create_git_repo\n+\n+      in_git_repo do\n+        RakeCommit::Shell.system \"touch new_file\"\n+        RakeCommit::Shell.backtick(\"printf 'test-author\\ntest-feature\\ntest-message\\n' | ../../../bin/rake_commit -m message\", false).split(\"\\n\")\n+\n+        log_lines = RakeCommit::Shell.backtick(\"git log\").split(\"\\n\")\n+        assert_operator log_lines.grep(/test-feature - test-message/).length, :>, 0\n+      end\n+    end\n+  end\n+\n+  # Ruby versions prior to 2.0 did not support pre_input_hook. Behavior is different if","path":"test/integration_test.rb","position":18,"original_position":18,"commit_id":"7f111937f301a9ba8371906ca2a9532a67aa84ac","original_commit_id":"7f111937f301a9ba8371906ca2a9532a67aa84ac","user":{"login":"pgr0ss","id":12998,"avatar_url":"https://avatars.githubusercontent.com/u/12998?v=3","gravatar_id":"","url":"https://api.github.com/users/pgr0ss","html_url":"https://github.com/pgr0ss","followers_url":"https://api.github.com/users/pgr0ss/followers","following_url":"https://api.github.com/users/pgr0ss/following{/other_user}","gists_url":"https://api.github.com/users/pgr0ss/gists{/gist_id}","starred_url":"https://api.github.com/users/pgr0ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgr0ss/subscriptions","organizations_url":"https://api.github.com/users/pgr0ss/orgs","repos_url":"https://api.github.com/users/pgr0ss/repos","events_url":"https://api.github.com/users/pgr0ss/events{/privacy}","received_events_url":"https://api.github.com/users/pgr0ss/received_events","type":"User","site_admin":false},"body":"a924865","created_at":"2016-03-22T04:59:45Z","updated_at":"2016-03-22T04:59:45Z","html_url":"https://github.com/pgr0ss/rake_commit/pull/26#discussion_r56937661","pull_request_url":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/comments/56937661"},"html":{"href":"https://github.com/pgr0ss/rake_commit/pull/26#discussion_r56937661"},"pull_request":{"href":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/26","id":61791662,"html_url":"https://github.com/pgr0ss/rake_commit/pull/26","diff_url":"https://github.com/pgr0ss/rake_commit/pull/26.diff","patch_url":"https://github.com/pgr0ss/rake_commit/pull/26.patch","issue_url":"https://api.github.com/repos/pgr0ss/rake_commit/issues/26","number":26,"state":"open","locked":false,"title":"Add optional alternative 'what & why' prompts.","user":{"login":"leighmcculloch","id":351529,"avatar_url":"https://avatars.githubusercontent.com/u/351529?v=3","gravatar_id":"","url":"https://api.github.com/users/leighmcculloch","html_url":"https://github.com/leighmcculloch","followers_url":"https://api.github.com/users/leighmcculloch/followers","following_url":"https://api.github.com/users/leighmcculloch/following{/other_user}","gists_url":"https://api.github.com/users/leighmcculloch/gists{/gist_id}","starred_url":"https://api.github.com/users/leighmcculloch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leighmcculloch/subscriptions","organizations_url":"https://api.github.com/users/leighmcculloch/orgs","repos_url":"https://api.github.com/users/leighmcculloch/repos","events_url":"https://api.github.com/users/leighmcculloch/events{/privacy}","received_events_url":"https://api.github.com/users/leighmcculloch/received_events","type":"User","site_admin":false},"body":"What\r\n===\r\nOptionally collect the git message as what, why and a short subject\r\nline. Only used by the `Git` integration. Long messages are word wrapped, default off.\r\n\r\nWhy\r\n===\r\nSo that users can optionally use this format instead of entering a\r\nsingle block commit message. Limiting commit messages to have a single\r\nwhat accompanied by a why supports a third party looking at the diff\r\nknow what the intentions and reasons for the change were without needing\r\nto hypothesise.","created_at":"2016-03-05T00:27:54Z","updated_at":"2016-03-22T04:59:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afcc89c934998fda3236b67e195fc04662be47cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/26/commits","review_comments_url":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/26/comments","review_comment_url":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pgr0ss/rake_commit/issues/26/comments","statuses_url":"https://api.github.com/repos/pgr0ss/rake_commit/statuses/7f111937f301a9ba8371906ca2a9532a67aa84ac","head":{"label":"leighmcculloch:leighmcculloch/what-and-why","ref":"leighmcculloch/what-and-why","sha":"7f111937f301a9ba8371906ca2a9532a67aa84ac","user":{"login":"leighmcculloch","id":351529,"avatar_url":"https://avatars.githubusercontent.com/u/351529?v=3","gravatar_id":"","url":"https://api.github.com/users/leighmcculloch","html_url":"https://github.com/leighmcculloch","followers_url":"https://api.github.com/users/leighmcculloch/followers","following_url":"https://api.github.com/users/leighmcculloch/following{/other_user}","gists_url":"https://api.github.com/users/leighmcculloch/gists{/gist_id}","starred_url":"https://api.github.com/users/leighmcculloch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leighmcculloch/subscriptions","organizations_url":"https://api.github.com/users/leighmcculloch/orgs","repos_url":"https://api.github.com/users/leighmcculloch/repos","events_url":"https://api.github.com/users/leighmcculloch/events{/privacy}","received_events_url":"https://api.github.com/users/leighmcculloch/received_events","type":"User","site_admin":false},"repo":{"id":53166993,"name":"rake_commit","full_name":"leighmcculloch/rake_commit","owner":{"login":"leighmcculloch","id":351529,"avatar_url":"https://avatars.githubusercontent.com/u/351529?v=3","gravatar_id":"","url":"https://api.github.com/users/leighmcculloch","html_url":"https://github.com/leighmcculloch","followers_url":"https://api.github.com/users/leighmcculloch/followers","following_url":"https://api.github.com/users/leighmcculloch/following{/other_user}","gists_url":"https://api.github.com/users/leighmcculloch/gists{/gist_id}","starred_url":"https://api.github.com/users/leighmcculloch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leighmcculloch/subscriptions","organizations_url":"https://api.github.com/users/leighmcculloch/orgs","repos_url":"https://api.github.com/users/leighmcculloch/repos","events_url":"https://api.github.com/users/leighmcculloch/events{/privacy}","received_events_url":"https://api.github.com/users/leighmcculloch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leighmcculloch/rake_commit","description":"A program that helps with checking in code.  It automates common git or svn commands.","fork":true,"url":"https://api.github.com/repos/leighmcculloch/rake_commit","forks_url":"https://api.github.com/repos/leighmcculloch/rake_commit/forks","keys_url":"https://api.github.com/repos/leighmcculloch/rake_commit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leighmcculloch/rake_commit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leighmcculloch/rake_commit/teams","hooks_url":"https://api.github.com/repos/leighmcculloch/rake_commit/hooks","issue_events_url":"https://api.github.com/repos/leighmcculloch/rake_commit/issues/events{/number}","events_url":"https://api.github.com/repos/leighmcculloch/rake_commit/events","assignees_url":"https://api.github.com/repos/leighmcculloch/rake_commit/assignees{/user}","branches_url":"https://api.github.com/repos/leighmcculloch/rake_commit/branches{/branch}","tags_url":"https://api.github.com/repos/leighmcculloch/rake_commit/tags","blobs_url":"https://api.github.com/repos/leighmcculloch/rake_commit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leighmcculloch/rake_commit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leighmcculloch/rake_commit/git/refs{/sha}","trees_url":"https://api.github.com/repos/leighmcculloch/rake_commit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leighmcculloch/rake_commit/statuses/{sha}","languages_url":"https://api.github.com/repos/leighmcculloch/rake_commit/languages","stargazers_url":"https://api.github.com/repos/leighmcculloch/rake_commit/stargazers","contributors_url":"https://api.github.com/repos/leighmcculloch/rake_commit/contributors","subscribers_url":"https://api.github.com/repos/leighmcculloch/rake_commit/subscribers","subscription_url":"https://api.github.com/repos/leighmcculloch/rake_commit/subscription","commits_url":"https://api.github.com/repos/leighmcculloch/rake_commit/commits{/sha}","git_commits_url":"https://api.github.com/repos/leighmcculloch/rake_commit/git/commits{/sha}","comments_url":"https://api.github.com/repos/leighmcculloch/rake_commit/comments{/number}","issue_comment_url":"https://api.github.com/repos/leighmcculloch/rake_commit/issues/comments{/number}","contents_url":"https://api.github.com/repos/leighmcculloch/rake_commit/contents/{+path}","compare_url":"https://api.github.com/repos/leighmcculloch/rake_commit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leighmcculloch/rake_commit/merges","archive_url":"https://api.github.com/repos/leighmcculloch/rake_commit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leighmcculloch/rake_commit/downloads","issues_url":"https://api.github.com/repos/leighmcculloch/rake_commit/issues{/number}","pulls_url":"https://api.github.com/repos/leighmcculloch/rake_commit/pulls{/number}","milestones_url":"https://api.github.com/repos/leighmcculloch/rake_commit/milestones{/number}","notifications_url":"https://api.github.com/repos/leighmcculloch/rake_commit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leighmcculloch/rake_commit/labels{/name}","releases_url":"https://api.github.com/repos/leighmcculloch/rake_commit/releases{/id}","deployments_url":"https://api.github.com/repos/leighmcculloch/rake_commit/deployments","created_at":"2016-03-04T21:36:20Z","updated_at":"2016-03-04T21:36:21Z","pushed_at":"2016-03-18T23:53:11Z","git_url":"git://github.com/leighmcculloch/rake_commit.git","ssh_url":"git@github.com:leighmcculloch/rake_commit.git","clone_url":"https://github.com/leighmcculloch/rake_commit.git","svn_url":"https://github.com/leighmcculloch/rake_commit","homepage":"","size":147,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pgr0ss:master","ref":"master","sha":"d5cc0d0d53ee8cdba922cf8e5632e9b0d52c8b82","user":{"login":"pgr0ss","id":12998,"avatar_url":"https://avatars.githubusercontent.com/u/12998?v=3","gravatar_id":"","url":"https://api.github.com/users/pgr0ss","html_url":"https://github.com/pgr0ss","followers_url":"https://api.github.com/users/pgr0ss/followers","following_url":"https://api.github.com/users/pgr0ss/following{/other_user}","gists_url":"https://api.github.com/users/pgr0ss/gists{/gist_id}","starred_url":"https://api.github.com/users/pgr0ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgr0ss/subscriptions","organizations_url":"https://api.github.com/users/pgr0ss/orgs","repos_url":"https://api.github.com/users/pgr0ss/repos","events_url":"https://api.github.com/users/pgr0ss/events{/privacy}","received_events_url":"https://api.github.com/users/pgr0ss/received_events","type":"User","site_admin":false},"repo":{"id":658091,"name":"rake_commit","full_name":"pgr0ss/rake_commit","owner":{"login":"pgr0ss","id":12998,"avatar_url":"https://avatars.githubusercontent.com/u/12998?v=3","gravatar_id":"","url":"https://api.github.com/users/pgr0ss","html_url":"https://github.com/pgr0ss","followers_url":"https://api.github.com/users/pgr0ss/followers","following_url":"https://api.github.com/users/pgr0ss/following{/other_user}","gists_url":"https://api.github.com/users/pgr0ss/gists{/gist_id}","starred_url":"https://api.github.com/users/pgr0ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgr0ss/subscriptions","organizations_url":"https://api.github.com/users/pgr0ss/orgs","repos_url":"https://api.github.com/users/pgr0ss/repos","events_url":"https://api.github.com/users/pgr0ss/events{/privacy}","received_events_url":"https://api.github.com/users/pgr0ss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pgr0ss/rake_commit","description":"A program that helps with checking in code.  It automates common git or svn commands.","fork":false,"url":"https://api.github.com/repos/pgr0ss/rake_commit","forks_url":"https://api.github.com/repos/pgr0ss/rake_commit/forks","keys_url":"https://api.github.com/repos/pgr0ss/rake_commit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pgr0ss/rake_commit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pgr0ss/rake_commit/teams","hooks_url":"https://api.github.com/repos/pgr0ss/rake_commit/hooks","issue_events_url":"https://api.github.com/repos/pgr0ss/rake_commit/issues/events{/number}","events_url":"https://api.github.com/repos/pgr0ss/rake_commit/events","assignees_url":"https://api.github.com/repos/pgr0ss/rake_commit/assignees{/user}","branches_url":"https://api.github.com/repos/pgr0ss/rake_commit/branches{/branch}","tags_url":"https://api.github.com/repos/pgr0ss/rake_commit/tags","blobs_url":"https://api.github.com/repos/pgr0ss/rake_commit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pgr0ss/rake_commit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pgr0ss/rake_commit/git/refs{/sha}","trees_url":"https://api.github.com/repos/pgr0ss/rake_commit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pgr0ss/rake_commit/statuses/{sha}","languages_url":"https://api.github.com/repos/pgr0ss/rake_commit/languages","stargazers_url":"https://api.github.com/repos/pgr0ss/rake_commit/stargazers","contributors_url":"https://api.github.com/repos/pgr0ss/rake_commit/contributors","subscribers_url":"https://api.github.com/repos/pgr0ss/rake_commit/subscribers","subscription_url":"https://api.github.com/repos/pgr0ss/rake_commit/subscription","commits_url":"https://api.github.com/repos/pgr0ss/rake_commit/commits{/sha}","git_commits_url":"https://api.github.com/repos/pgr0ss/rake_commit/git/commits{/sha}","comments_url":"https://api.github.com/repos/pgr0ss/rake_commit/comments{/number}","issue_comment_url":"https://api.github.com/repos/pgr0ss/rake_commit/issues/comments{/number}","contents_url":"https://api.github.com/repos/pgr0ss/rake_commit/contents/{+path}","compare_url":"https://api.github.com/repos/pgr0ss/rake_commit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pgr0ss/rake_commit/merges","archive_url":"https://api.github.com/repos/pgr0ss/rake_commit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pgr0ss/rake_commit/downloads","issues_url":"https://api.github.com/repos/pgr0ss/rake_commit/issues{/number}","pulls_url":"https://api.github.com/repos/pgr0ss/rake_commit/pulls{/number}","milestones_url":"https://api.github.com/repos/pgr0ss/rake_commit/milestones{/number}","notifications_url":"https://api.github.com/repos/pgr0ss/rake_commit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pgr0ss/rake_commit/labels{/name}","releases_url":"https://api.github.com/repos/pgr0ss/rake_commit/releases{/id}","deployments_url":"https://api.github.com/repos/pgr0ss/rake_commit/deployments","created_at":"2010-05-09T21:05:14Z","updated_at":"2016-02-03T07:30:37Z","pushed_at":"2016-03-22T04:59:27Z","git_url":"git://github.com/pgr0ss/rake_commit.git","ssh_url":"git@github.com:pgr0ss/rake_commit.git","clone_url":"https://github.com/pgr0ss/rake_commit.git","svn_url":"https://github.com/pgr0ss/rake_commit","homepage":"","size":158,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":4,"forks":15,"open_issues":4,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/26"},"html":{"href":"https://github.com/pgr0ss/rake_commit/pull/26"},"issue":{"href":"https://api.github.com/repos/pgr0ss/rake_commit/issues/26"},"comments":{"href":"https://api.github.com/repos/pgr0ss/rake_commit/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pgr0ss/rake_commit/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/pgr0ss/rake_commit/statuses/7f111937f301a9ba8371906ca2a9532a67aa84ac"}}}}