{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala/pulls/comments/92335559","pull_request_review_id":12848001,"id":92335559,"diff_hunk":"@@ -14,8 +14,14 @@ def setUp(self):\n         self.test_result = Result('origin', 'message', debug_msg='DEBUG MSG')\n \n     def test_is_applicable(self):\n-        self.assertFalse(self.uut.is_applicable(1, None, None))\n-        self.assertFalse(self.uut.is_applicable(Result('o', 'm'), None, None))\n+        with self.assertRaises(TypeError):\n+            self.uut.is_applicable(1, None, None)\n+\n+        self.assertEqual(\n+            self.uut.is_applicable(Result('o', 'm'), None, None),\n+            \"There is no debug message\"\n+        )\n+        ","path":"tests/results/result_actions/PrintDebugMessageActionTest.py","position":13,"original_position":13,"commit_id":"27c243879cdba5c2164d8e6574b13ac629da18c9","original_commit_id":"27c243879cdba5c2164d8e6574b13ac629da18c9","user":{"login":"gitmate-bot","id":15421488,"avatar_url":"https://avatars.githubusercontent.com/u/15421488?v=3","gravatar_id":"","url":"https://api.github.com/users/gitmate-bot","html_url":"https://github.com/gitmate-bot","followers_url":"https://api.github.com/users/gitmate-bot/followers","following_url":"https://api.github.com/users/gitmate-bot/following{/other_user}","gists_url":"https://api.github.com/users/gitmate-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/gitmate-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitmate-bot/subscriptions","organizations_url":"https://api.github.com/users/gitmate-bot/orgs","repos_url":"https://api.github.com/users/gitmate-bot/repos","events_url":"https://api.github.com/users/gitmate-bot/events{/privacy}","received_events_url":"https://api.github.com/users/gitmate-bot/received_events","type":"User","site_admin":false},"body":"The code does not comply to PEP8.\n\n*PEP8Bear, severity NORMAL, section `autopep8`.*\n\nThe issue can be fixed by applying the following patch:\n\n```diff\n--- a/tests/results/result_actions/PrintDebugMessageActionTest.py\n+++ b/tests/results/result_actions/PrintDebugMessageActionTest.py\n@@ -21,7 +21,7 @@\n             self.uut.is_applicable(Result('o', 'm'), None, None),\n             \"There is no debug message\"\n         )\n-        \n+\n         self.assertTrue(self.uut.is_applicable(self.test_result, None, None))\n \n     def test_apply(self):\n```","created_at":"2016-12-14T07:36:41Z","updated_at":"2016-12-14T07:36:41Z","html_url":"https://github.com/coala/coala/pull/3269#discussion_r92335559","pull_request_url":"https://api.github.com/repos/coala/coala/pulls/3269","_links":{"self":{"href":"https://api.github.com/repos/coala/coala/pulls/comments/92335559"},"html":{"href":"https://github.com/coala/coala/pull/3269#discussion_r92335559"},"pull_request":{"href":"https://api.github.com/repos/coala/coala/pulls/3269"}}},"pull_request":{"url":"https://api.github.com/repos/coala/coala/pulls/3269","id":97901151,"html_url":"https://github.com/coala/coala/pull/3269","diff_url":"https://github.com/coala/coala/pull/3269.diff","patch_url":"https://github.com/coala/coala/pull/3269.patch","issue_url":"https://api.github.com/repos/coala/coala/issues/3269","number":3269,"state":"open","locked":false,"title":"Custom 'not applicable' message for result action","user":{"login":"arush0311","id":12007608,"avatar_url":"https://avatars.githubusercontent.com/u/12007608?v=3","gravatar_id":"","url":"https://api.github.com/users/arush0311","html_url":"https://github.com/arush0311","followers_url":"https://api.github.com/users/arush0311/followers","following_url":"https://api.github.com/users/arush0311/following{/other_user}","gists_url":"https://api.github.com/users/arush0311/gists{/gist_id}","starred_url":"https://api.github.com/users/arush0311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arush0311/subscriptions","organizations_url":"https://api.github.com/users/arush0311/orgs","repos_url":"https://api.github.com/users/arush0311/repos","events_url":"https://api.github.com/users/arush0311/events{/privacy}","received_events_url":"https://api.github.com/users/arush0311/received_events","type":"User","site_admin":false},"body":"This commit changes the `is_applicable` method to return\r\nthe 'not_applicable' message when the result action is not applicable.\r\n\r\nIt also change the message type from:\r\nSelected default action <ResultAction> for bear <BearName>\r\nis not applicable.\r\n\r\nTo:\r\n<BearName>:<CustomResultActionMessage>\r\n\r\nCloses https://github.com/coala/coala/issues/3169","created_at":"2016-12-14T07:35:54Z","updated_at":"2016-12-14T07:36:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c768de4d3d699545dd9a90d6b3cad2581b63c7b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/coala/coala/pulls/3269/commits","review_comments_url":"https://api.github.com/repos/coala/coala/pulls/3269/comments","review_comment_url":"https://api.github.com/repos/coala/coala/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/coala/issues/3269/comments","statuses_url":"https://api.github.com/repos/coala/coala/statuses/27c243879cdba5c2164d8e6574b13ac629da18c9","head":{"label":"arush0311:not-applicable-msg","ref":"not-applicable-msg","sha":"27c243879cdba5c2164d8e6574b13ac629da18c9","user":{"login":"arush0311","id":12007608,"avatar_url":"https://avatars.githubusercontent.com/u/12007608?v=3","gravatar_id":"","url":"https://api.github.com/users/arush0311","html_url":"https://github.com/arush0311","followers_url":"https://api.github.com/users/arush0311/followers","following_url":"https://api.github.com/users/arush0311/following{/other_user}","gists_url":"https://api.github.com/users/arush0311/gists{/gist_id}","starred_url":"https://api.github.com/users/arush0311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arush0311/subscriptions","organizations_url":"https://api.github.com/users/arush0311/orgs","repos_url":"https://api.github.com/users/arush0311/repos","events_url":"https://api.github.com/users/arush0311/events{/privacy}","received_events_url":"https://api.github.com/users/arush0311/received_events","type":"User","site_admin":false},"repo":{"id":65389828,"name":"coala","full_name":"arush0311/coala","owner":{"login":"arush0311","id":12007608,"avatar_url":"https://avatars.githubusercontent.com/u/12007608?v=3","gravatar_id":"","url":"https://api.github.com/users/arush0311","html_url":"https://github.com/arush0311","followers_url":"https://api.github.com/users/arush0311/followers","following_url":"https://api.github.com/users/arush0311/following{/other_user}","gists_url":"https://api.github.com/users/arush0311/gists{/gist_id}","starred_url":"https://api.github.com/users/arush0311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arush0311/subscriptions","organizations_url":"https://api.github.com/users/arush0311/orgs","repos_url":"https://api.github.com/users/arush0311/repos","events_url":"https://api.github.com/users/arush0311/events{/privacy}","received_events_url":"https://api.github.com/users/arush0311/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arush0311/coala","description":"coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.","fork":true,"url":"https://api.github.com/repos/arush0311/coala","forks_url":"https://api.github.com/repos/arush0311/coala/forks","keys_url":"https://api.github.com/repos/arush0311/coala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arush0311/coala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arush0311/coala/teams","hooks_url":"https://api.github.com/repos/arush0311/coala/hooks","issue_events_url":"https://api.github.com/repos/arush0311/coala/issues/events{/number}","events_url":"https://api.github.com/repos/arush0311/coala/events","assignees_url":"https://api.github.com/repos/arush0311/coala/assignees{/user}","branches_url":"https://api.github.com/repos/arush0311/coala/branches{/branch}","tags_url":"https://api.github.com/repos/arush0311/coala/tags","blobs_url":"https://api.github.com/repos/arush0311/coala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arush0311/coala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arush0311/coala/git/refs{/sha}","trees_url":"https://api.github.com/repos/arush0311/coala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arush0311/coala/statuses/{sha}","languages_url":"https://api.github.com/repos/arush0311/coala/languages","stargazers_url":"https://api.github.com/repos/arush0311/coala/stargazers","contributors_url":"https://api.github.com/repos/arush0311/coala/contributors","subscribers_url":"https://api.github.com/repos/arush0311/coala/subscribers","subscription_url":"https://api.github.com/repos/arush0311/coala/subscription","commits_url":"https://api.github.com/repos/arush0311/coala/commits{/sha}","git_commits_url":"https://api.github.com/repos/arush0311/coala/git/commits{/sha}","comments_url":"https://api.github.com/repos/arush0311/coala/comments{/number}","issue_comment_url":"https://api.github.com/repos/arush0311/coala/issues/comments{/number}","contents_url":"https://api.github.com/repos/arush0311/coala/contents/{+path}","compare_url":"https://api.github.com/repos/arush0311/coala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arush0311/coala/merges","archive_url":"https://api.github.com/repos/arush0311/coala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arush0311/coala/downloads","issues_url":"https://api.github.com/repos/arush0311/coala/issues{/number}","pulls_url":"https://api.github.com/repos/arush0311/coala/pulls{/number}","milestones_url":"https://api.github.com/repos/arush0311/coala/milestones{/number}","notifications_url":"https://api.github.com/repos/arush0311/coala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arush0311/coala/labels{/name}","releases_url":"https://api.github.com/repos/arush0311/coala/releases{/id}","deployments_url":"https://api.github.com/repos/arush0311/coala/deployments","created_at":"2016-08-10T14:35:49Z","updated_at":"2016-08-10T14:35:51Z","pushed_at":"2016-12-14T07:33:31Z","git_url":"git://github.com/arush0311/coala.git","ssh_url":"git@github.com:arush0311/coala.git","clone_url":"https://github.com/arush0311/coala.git","svn_url":"https://github.com/arush0311/coala","homepage":"http://coala-analyzer.org/","size":9990,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"coala:master","ref":"master","sha":"3bb6e2e0382c8cdf8514f144443b735b87c784b4","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"repo":{"id":19816973,"name":"coala","full_name":"coala/coala","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars.githubusercontent.com/u/10620750?v=3","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala/coala","description":"coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.","fork":false,"url":"https://api.github.com/repos/coala/coala","forks_url":"https://api.github.com/repos/coala/coala/forks","keys_url":"https://api.github.com/repos/coala/coala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/coala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/coala/teams","hooks_url":"https://api.github.com/repos/coala/coala/hooks","issue_events_url":"https://api.github.com/repos/coala/coala/issues/events{/number}","events_url":"https://api.github.com/repos/coala/coala/events","assignees_url":"https://api.github.com/repos/coala/coala/assignees{/user}","branches_url":"https://api.github.com/repos/coala/coala/branches{/branch}","tags_url":"https://api.github.com/repos/coala/coala/tags","blobs_url":"https://api.github.com/repos/coala/coala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/coala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/coala/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/coala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/coala/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/coala/languages","stargazers_url":"https://api.github.com/repos/coala/coala/stargazers","contributors_url":"https://api.github.com/repos/coala/coala/contributors","subscribers_url":"https://api.github.com/repos/coala/coala/subscribers","subscription_url":"https://api.github.com/repos/coala/coala/subscription","commits_url":"https://api.github.com/repos/coala/coala/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/coala/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/coala/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/coala/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/coala/contents/{+path}","compare_url":"https://api.github.com/repos/coala/coala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/coala/merges","archive_url":"https://api.github.com/repos/coala/coala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/coala/downloads","issues_url":"https://api.github.com/repos/coala/coala/issues{/number}","pulls_url":"https://api.github.com/repos/coala/coala/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/coala/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/coala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/coala/labels{/name}","releases_url":"https://api.github.com/repos/coala/coala/releases{/id}","deployments_url":"https://api.github.com/repos/coala/coala/deployments","created_at":"2014-05-15T11:35:34Z","updated_at":"2016-12-14T04:43:10Z","pushed_at":"2016-12-14T07:35:54Z","git_url":"git://github.com/coala/coala.git","ssh_url":"git@github.com:coala/coala.git","clone_url":"https://github.com/coala/coala.git","svn_url":"https://github.com/coala/coala","homepage":"https://coala.io/","size":10757,"stargazers_count":861,"watchers_count":861,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":361,"mirror_url":null,"open_issues_count":344,"forks":361,"open_issues":344,"watchers":861,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala/pulls/3269"},"html":{"href":"https://github.com/coala/coala/pull/3269"},"issue":{"href":"https://api.github.com/repos/coala/coala/issues/3269"},"comments":{"href":"https://api.github.com/repos/coala/coala/issues/3269/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala/pulls/3269/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/coala/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/coala/pulls/3269/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala/statuses/27c243879cdba5c2164d8e6574b13ac629da18c9"}}}}
{"actor":{"display_login":"gitmate-bot"}}