{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/comments/172581671","pull_request_review_id":101622494,"id":172581671,"diff_hunk":"@@ -0,0 +1,563 @@\n+import os\n+import platform\n+import shutil\n+import stat\n+import unittest\n+import unittest.mock\n+from queue import Queue\n+from tempfile import mkdtemp\n+\n+from coalib.testing.BearTestHelper import generate_skip_decorator\n+from bears.vcs.mercurial.HgCommitBear import HgCommitBear\n+from coala_utils.string_processing.Core import escape\n+from coalib.misc.Shell import run_shell_command\n+from coalib.settings.ConfigurationGathering import get_config_directory\n+from coalib.settings.Section import Section\n+from coalib.settings.Setting import Setting\n+\n+\n+@generate_skip_decorator(HgCommitBear)\n+class HgCommitBearTest(unittest.TestCase):\n+\n+    testFile = \"testFile.txt\"","path":"tests/vcs/mercurial/HgCommitBearTest.py","position":22,"original_position":22,"commit_id":"3c4c6de32b6171329aa33256a071b21b3f1b9118","original_commit_id":"3c4c6de32b6171329aa33256a071b21b3f1b9118","user":{"login":"gitmate-bot","id":15421488,"avatar_url":"https://avatars0.githubusercontent.com/u/15421488?v=4","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":"You do not use the preferred quotation marks.\n\n*Origin: QuotesBear, Section: `python`.*\n\nThe issue can be fixed by applying the following patch:\n\n```diff\n--- a/tmp/tmp_x3h0xgj/tests/vcs/mercurial/HgCommitBearTest.py\n+++ b/tmp/tmp_x3h0xgj/tests/vcs/mercurial/HgCommitBearTest.py\n@@ -19,7 +19,7 @@\n @generate_skip_decorator(HgCommitBear)\n class HgCommitBearTest(unittest.TestCase):\n \n-    testFile = \"testFile.txt\"\n+    testFile = 'testFile.txt'\n \n     @staticmethod\n     def run_hg_command(*args, stdin=None):\n```","created_at":"2018-03-06T16:42:54Z","updated_at":"2018-03-06T16:42:54Z","html_url":"https://github.com/coala/coala-bears/pull/2310#discussion_r172581671","pull_request_url":"https://api.github.com/repos/coala/coala-bears/pulls/2310","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/comments/172581671"},"html":{"href":"https://github.com/coala/coala-bears/pull/2310#discussion_r172581671"},"pull_request":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/2310"}}},"pull_request":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/2310","id":173214599,"html_url":"https://github.com/coala/coala-bears/pull/2310","diff_url":"https://github.com/coala/coala-bears/pull/2310.diff","patch_url":"https://github.com/coala/coala-bears/pull/2310.patch","issue_url":"https://api.github.com/repos/coala/coala-bears/issues/2310","number":2310,"state":"open","locked":false,"title":"HgCommitBear.py: Add Mercurial support for commits","user":{"login":"virresh","id":10978108,"avatar_url":"https://avatars0.githubusercontent.com/u/10978108?v=4","gravatar_id":"","url":"https://api.github.com/users/virresh","html_url":"https://github.com/virresh","followers_url":"https://api.github.com/users/virresh/followers","following_url":"https://api.github.com/users/virresh/following{/other_user}","gists_url":"https://api.github.com/users/virresh/gists{/gist_id}","starred_url":"https://api.github.com/users/virresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virresh/subscriptions","organizations_url":"https://api.github.com/users/virresh/orgs","repos_url":"https://api.github.com/users/virresh/repos","events_url":"https://api.github.com/users/virresh/events{/privacy}","received_events_url":"https://api.github.com/users/virresh/received_events","type":"User","site_admin":false},"body":"Add support for mercurial commits using a HgCommitBear\r\non the same lines as GitCommitBear. This bear also uses\r\nnltk to inforce imperative mood check and checks the\r\nHEAD commit only. Requires Hg installed to function.\r\n\r\nCloses https://github.com/coala/coala-bears/issues/2286\r\n\r\nI have added the tests in accordance with the GitCommitBear \r\nand kept the bear's interface same as GitCommitBear so as \r\nto have consistency over both the VCS bears.\r\n<!--\r\nThanks for your contribution!\r\n\r\nPlease take a quick look at those things down there. They're quite important.\r\nReally! We wrote them for you. Yes you! With utmost care. Read them.\r\n-->\r\n\r\n**For short term contributors:** we understand that getting your commits well\r\ndefined like we require is a hard task and takes some learning. If you\r\nlook to help without wanting to contribute long term there's no need\r\nfor you to learn this. Just drop us a message and we'll take care of brushing\r\nup your stuff for merge!\r\n\r\n### Checklist\r\n\r\n- [x] I read the [commit guidelines](http://coala.io/commit) and I've followed\r\n      them.\r\n- [x] I ran coala over my code locally. (*All commits have to pass\r\n      individually.* It is not sufficient to have \"fixup commits\" on your PR,\r\n      our bot will still report the issues for the previous commit.) You will\r\n      likely receive a lot of bot comments and build failures if coala does not\r\n      pass on every single commit!\r\n\r\nAfter you submit your pull request, **DO NOT click the 'Update Branch' button.**\r\nWhen asked for a rebase, consult [coala.io/rebase](https://coala.io/rebase)\r\ninstead.\r\n\r\nPlease consider helping us by reviewing other peoples pull requests as well:\r\n\r\n- pick up any PR at <https://coala.io/review>\r\n- review it (check <https://coala.io/reviewing> for more info)\r\n- if you are sure that it needs work, use `corobo mark wip <URL>` to get it out\r\n  of the review queue.\r\n\r\nThe more you review, the more your score will grow at coala.io and we will\r\nreview your PRs faster!\r\n","created_at":"2018-03-06T16:42:24Z","updated_at":"2018-03-06T16:42:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15b46cccd52c1bdcbebf5d8568cd4fad8a4787a7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":327367116,"url":"https://api.github.com/repos/coala/coala-bears/labels/process/pending%20review","name":"process/pending review","color":"bfe5bf","default":false},{"id":327048720,"url":"https://api.github.com/repos/coala/coala-bears/labels/size/L","name":"size/L","color":"FF8888","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/coala/coala-bears/pulls/2310/commits","review_comments_url":"https://api.github.com/repos/coala/coala-bears/pulls/2310/comments","review_comment_url":"https://api.github.com/repos/coala/coala-bears/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/coala-bears/issues/2310/comments","statuses_url":"https://api.github.com/repos/coala/coala-bears/statuses/3c4c6de32b6171329aa33256a071b21b3f1b9118","head":{"label":"virresh:virresh/mercurialBear","ref":"virresh/mercurialBear","sha":"3c4c6de32b6171329aa33256a071b21b3f1b9118","user":{"login":"virresh","id":10978108,"avatar_url":"https://avatars0.githubusercontent.com/u/10978108?v=4","gravatar_id":"","url":"https://api.github.com/users/virresh","html_url":"https://github.com/virresh","followers_url":"https://api.github.com/users/virresh/followers","following_url":"https://api.github.com/users/virresh/following{/other_user}","gists_url":"https://api.github.com/users/virresh/gists{/gist_id}","starred_url":"https://api.github.com/users/virresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virresh/subscriptions","organizations_url":"https://api.github.com/users/virresh/orgs","repos_url":"https://api.github.com/users/virresh/repos","events_url":"https://api.github.com/users/virresh/events{/privacy}","received_events_url":"https://api.github.com/users/virresh/received_events","type":"User","site_admin":false},"repo":{"id":120336276,"name":"coala-bears","full_name":"virresh/coala-bears","owner":{"login":"virresh","id":10978108,"avatar_url":"https://avatars0.githubusercontent.com/u/10978108?v=4","gravatar_id":"","url":"https://api.github.com/users/virresh","html_url":"https://github.com/virresh","followers_url":"https://api.github.com/users/virresh/followers","following_url":"https://api.github.com/users/virresh/following{/other_user}","gists_url":"https://api.github.com/users/virresh/gists{/gist_id}","starred_url":"https://api.github.com/users/virresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virresh/subscriptions","organizations_url":"https://api.github.com/users/virresh/orgs","repos_url":"https://api.github.com/users/virresh/repos","events_url":"https://api.github.com/users/virresh/events{/privacy}","received_events_url":"https://api.github.com/users/virresh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/virresh/coala-bears","description":"Bears for coala","fork":true,"url":"https://api.github.com/repos/virresh/coala-bears","forks_url":"https://api.github.com/repos/virresh/coala-bears/forks","keys_url":"https://api.github.com/repos/virresh/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/virresh/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/virresh/coala-bears/teams","hooks_url":"https://api.github.com/repos/virresh/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/virresh/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/virresh/coala-bears/events","assignees_url":"https://api.github.com/repos/virresh/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/virresh/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/virresh/coala-bears/tags","blobs_url":"https://api.github.com/repos/virresh/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/virresh/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/virresh/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/virresh/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/virresh/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/virresh/coala-bears/languages","stargazers_url":"https://api.github.com/repos/virresh/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/virresh/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/virresh/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/virresh/coala-bears/subscription","commits_url":"https://api.github.com/repos/virresh/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/virresh/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/virresh/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/virresh/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/virresh/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/virresh/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/virresh/coala-bears/merges","archive_url":"https://api.github.com/repos/virresh/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/virresh/coala-bears/downloads","issues_url":"https://api.github.com/repos/virresh/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/virresh/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/virresh/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/virresh/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/virresh/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/virresh/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/virresh/coala-bears/deployments","created_at":"2018-02-05T17:13:09Z","updated_at":"2018-02-05T17:13:12Z","pushed_at":"2018-03-06T15:25:19Z","git_url":"git://github.com/virresh/coala-bears.git","ssh_url":"git@github.com:virresh/coala-bears.git","clone_url":"https://github.com/virresh/coala-bears.git","svn_url":"https://github.com/virresh/coala-bears","homepage":"https://coala.io/","size":1972,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coala:master","ref":"master","sha":"bd0194cf436b70575c4850815646f9576c80203a","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","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":51688289,"name":"coala-bears","full_name":"coala/coala-bears","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","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-bears","description":"Bears for coala","fork":false,"url":"https://api.github.com/repos/coala/coala-bears","forks_url":"https://api.github.com/repos/coala/coala-bears/forks","keys_url":"https://api.github.com/repos/coala/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/coala-bears/teams","hooks_url":"https://api.github.com/repos/coala/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/coala/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/coala/coala-bears/events","assignees_url":"https://api.github.com/repos/coala/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/coala/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/coala/coala-bears/tags","blobs_url":"https://api.github.com/repos/coala/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/coala-bears/languages","stargazers_url":"https://api.github.com/repos/coala/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/coala/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/coala/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/coala/coala-bears/subscription","commits_url":"https://api.github.com/repos/coala/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/coala/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/coala-bears/merges","archive_url":"https://api.github.com/repos/coala/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/coala-bears/downloads","issues_url":"https://api.github.com/repos/coala/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/coala/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/coala/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/coala/coala-bears/deployments","created_at":"2016-02-14T09:25:11Z","updated_at":"2018-03-05T14:25:40Z","pushed_at":"2018-03-06T16:42:25Z","git_url":"git://github.com/coala/coala-bears.git","ssh_url":"git@github.com:coala/coala-bears.git","clone_url":"https://github.com/coala/coala-bears.git","svn_url":"https://github.com/coala/coala-bears","homepage":"https://coala.io/","size":1964,"stargazers_count":175,"watchers_count":175,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":455,"mirror_url":null,"archived":false,"open_issues_count":603,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":455,"open_issues":603,"watchers":175,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/2310"},"html":{"href":"https://github.com/coala/coala-bears/pull/2310"},"issue":{"href":"https://api.github.com/repos/coala/coala-bears/issues/2310"},"comments":{"href":"https://api.github.com/repos/coala/coala-bears/issues/2310/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/2310/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/2310/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala-bears/statuses/3c4c6de32b6171329aa33256a071b21b3f1b9118"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"gitmate-bot"}}