{"action":"created","comment":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/comments/257457432","pull_request_review_id":204516458,"id":257457432,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1NzQ1NzQzMg==","diff_hunk":"@@ -0,0 +1,37 @@\n+import shutil\n+\n+from coalib.bears.GlobalBear import GlobalBear\n+from coalib.misc.Shell import run_shell_command\n+\n+\n+class GitIgnoreBear(GlobalBear):\n+    AUTHORS = {'The coala developers'}\n+    AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}\n+    LICENSE = 'AGPL-3.0'\n+    CAN_DETECT = {'Formatting'}\n+\n+    @classmethod\n+    def check_prerequisites(cls):\n+        if shutil.which('git') is None:\n+            return 'git is not installed.'\n+        else:\n+            return True\n+\n+    @staticmethod\n+    def get_ignored_files():\n+        files, _ = run_shell_command('git ls-files')\n+        files = files.strip().split('\\n')\n+        ignored = list(map(\n+            lambda file: run_shell_command(\n+                'git check-ignore --no-index -v {}'.format(file))[0].strip(), files","path":"bears/vcs/git/GitIgnoreBear.py","position":26,"original_position":26,"commit_id":"82b9ea8f4188e310cf2fac4750c32ac4666ca594","original_commit_id":"82b9ea8f4188e310cf2fac4750c32ac4666ca594","user":{"login":"gitmate-bot","id":15421488,"node_id":"MDQ6VXNlcjE1NDIxNDg4","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":"Line is longer than allowed. (83 > 80)\n\n*Origin: LineLengthBear, Section: `all.linelength`.*","created_at":"2019-02-16T11:41:39Z","updated_at":"2019-02-16T11:41:39Z","html_url":"https://github.com/coala/coala-bears/pull/2878#discussion_r257457432","pull_request_url":"https://api.github.com/repos/coala/coala-bears/pulls/2878","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/comments/257457432"},"html":{"href":"https://github.com/coala/coala-bears/pull/2878#discussion_r257457432"},"pull_request":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/2878"}}},"pull_request":{"url":"https://api.github.com/repos/coala/coala-bears/pulls/2878","id":253636874,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUzNjM2ODc0","html_url":"https://github.com/coala/coala-bears/pull/2878","diff_url":"https://github.com/coala/coala-bears/pull/2878.diff","patch_url":"https://github.com/coala/coala-bears/pull/2878.patch","issue_url":"https://api.github.com/repos/coala/coala-bears/issues/2878","number":2878,"state":"open","locked":false,"title":"vcs/git: Add GitIgnoreBear","user":{"login":"bharath21","id":11963974,"node_id":"MDQ6VXNlcjExOTYzOTc0","avatar_url":"https://avatars3.githubusercontent.com/u/11963974?v=4","gravatar_id":"","url":"https://api.github.com/users/bharath21","html_url":"https://github.com/bharath21","followers_url":"https://api.github.com/users/bharath21/followers","following_url":"https://api.github.com/users/bharath21/following{/other_user}","gists_url":"https://api.github.com/users/bharath21/gists{/gist_id}","starred_url":"https://api.github.com/users/bharath21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bharath21/subscriptions","organizations_url":"https://api.github.com/users/bharath21/orgs","repos_url":"https://api.github.com/users/bharath21/repos","events_url":"https://api.github.com/users/bharath21/events{/privacy}","received_events_url":"https://api.github.com/users/bharath21/received_events","type":"User","site_admin":false},"body":"Closes https://github.com/coala/coala-bears/issues/2610\r\n\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!","created_at":"2019-02-16T11:21:44Z","updated_at":"2019-02-16T11:41:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efcf695c77c354fa5f9b4108f5c2b0e89f242e39","assignee":{"login":"soumya-ranjan7","id":25425232,"node_id":"MDQ6VXNlcjI1NDI1MjMy","avatar_url":"https://avatars2.githubusercontent.com/u/25425232?v=4","gravatar_id":"","url":"https://api.github.com/users/soumya-ranjan7","html_url":"https://github.com/soumya-ranjan7","followers_url":"https://api.github.com/users/soumya-ranjan7/followers","following_url":"https://api.github.com/users/soumya-ranjan7/following{/other_user}","gists_url":"https://api.github.com/users/soumya-ranjan7/gists{/gist_id}","starred_url":"https://api.github.com/users/soumya-ranjan7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumya-ranjan7/subscriptions","organizations_url":"https://api.github.com/users/soumya-ranjan7/orgs","repos_url":"https://api.github.com/users/soumya-ranjan7/repos","events_url":"https://api.github.com/users/soumya-ranjan7/events{/privacy}","received_events_url":"https://api.github.com/users/soumya-ranjan7/received_events","type":"User","site_admin":false},"assignees":[{"login":"soumya-ranjan7","id":25425232,"node_id":"MDQ6VXNlcjI1NDI1MjMy","avatar_url":"https://avatars2.githubusercontent.com/u/25425232?v=4","gravatar_id":"","url":"https://api.github.com/users/soumya-ranjan7","html_url":"https://github.com/soumya-ranjan7","followers_url":"https://api.github.com/users/soumya-ranjan7/followers","following_url":"https://api.github.com/users/soumya-ranjan7/following{/other_user}","gists_url":"https://api.github.com/users/soumya-ranjan7/gists{/gist_id}","starred_url":"https://api.github.com/users/soumya-ranjan7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumya-ranjan7/subscriptions","organizations_url":"https://api.github.com/users/soumya-ranjan7/orgs","repos_url":"https://api.github.com/users/soumya-ranjan7/repos","events_url":"https://api.github.com/users/soumya-ranjan7/events{/privacy}","received_events_url":"https://api.github.com/users/soumya-ranjan7/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":413192326,"node_id":"MDU6TGFiZWw0MTMxOTIzMjY=","url":"https://api.github.com/repos/coala/coala-bears/labels/bear%20proposal","name":"bear proposal","color":"ADFF2F","default":false},{"id":327367116,"node_id":"MDU6TGFiZWwzMjczNjcxMTY=","url":"https://api.github.com/repos/coala/coala-bears/labels/process/pending%20review","name":"process/pending review","color":"bfe5bf","default":false},{"id":327048722,"node_id":"MDU6TGFiZWwzMjcwNDg3MjI=","url":"https://api.github.com/repos/coala/coala-bears/labels/size/S","name":"size/S","color":"B1CF0A","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/coala/coala-bears/pulls/2878/commits","review_comments_url":"https://api.github.com/repos/coala/coala-bears/pulls/2878/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/2878/comments","statuses_url":"https://api.github.com/repos/coala/coala-bears/statuses/82b9ea8f4188e310cf2fac4750c32ac4666ca594","head":{"label":"bharath21:bharath21/GitIgnoreBear","ref":"bharath21/GitIgnoreBear","sha":"82b9ea8f4188e310cf2fac4750c32ac4666ca594","user":{"login":"bharath21","id":11963974,"node_id":"MDQ6VXNlcjExOTYzOTc0","avatar_url":"https://avatars3.githubusercontent.com/u/11963974?v=4","gravatar_id":"","url":"https://api.github.com/users/bharath21","html_url":"https://github.com/bharath21","followers_url":"https://api.github.com/users/bharath21/followers","following_url":"https://api.github.com/users/bharath21/following{/other_user}","gists_url":"https://api.github.com/users/bharath21/gists{/gist_id}","starred_url":"https://api.github.com/users/bharath21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bharath21/subscriptions","organizations_url":"https://api.github.com/users/bharath21/orgs","repos_url":"https://api.github.com/users/bharath21/repos","events_url":"https://api.github.com/users/bharath21/events{/privacy}","received_events_url":"https://api.github.com/users/bharath21/received_events","type":"User","site_admin":false},"repo":{"id":170476254,"node_id":"MDEwOlJlcG9zaXRvcnkxNzA0NzYyNTQ=","name":"coala-bears","full_name":"bharath21/coala-bears","private":false,"owner":{"login":"bharath21","id":11963974,"node_id":"MDQ6VXNlcjExOTYzOTc0","avatar_url":"https://avatars3.githubusercontent.com/u/11963974?v=4","gravatar_id":"","url":"https://api.github.com/users/bharath21","html_url":"https://github.com/bharath21","followers_url":"https://api.github.com/users/bharath21/followers","following_url":"https://api.github.com/users/bharath21/following{/other_user}","gists_url":"https://api.github.com/users/bharath21/gists{/gist_id}","starred_url":"https://api.github.com/users/bharath21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bharath21/subscriptions","organizations_url":"https://api.github.com/users/bharath21/orgs","repos_url":"https://api.github.com/users/bharath21/repos","events_url":"https://api.github.com/users/bharath21/events{/privacy}","received_events_url":"https://api.github.com/users/bharath21/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bharath21/coala-bears","description":"Bears for coala","fork":true,"url":"https://api.github.com/repos/bharath21/coala-bears","forks_url":"https://api.github.com/repos/bharath21/coala-bears/forks","keys_url":"https://api.github.com/repos/bharath21/coala-bears/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bharath21/coala-bears/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bharath21/coala-bears/teams","hooks_url":"https://api.github.com/repos/bharath21/coala-bears/hooks","issue_events_url":"https://api.github.com/repos/bharath21/coala-bears/issues/events{/number}","events_url":"https://api.github.com/repos/bharath21/coala-bears/events","assignees_url":"https://api.github.com/repos/bharath21/coala-bears/assignees{/user}","branches_url":"https://api.github.com/repos/bharath21/coala-bears/branches{/branch}","tags_url":"https://api.github.com/repos/bharath21/coala-bears/tags","blobs_url":"https://api.github.com/repos/bharath21/coala-bears/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bharath21/coala-bears/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bharath21/coala-bears/git/refs{/sha}","trees_url":"https://api.github.com/repos/bharath21/coala-bears/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bharath21/coala-bears/statuses/{sha}","languages_url":"https://api.github.com/repos/bharath21/coala-bears/languages","stargazers_url":"https://api.github.com/repos/bharath21/coala-bears/stargazers","contributors_url":"https://api.github.com/repos/bharath21/coala-bears/contributors","subscribers_url":"https://api.github.com/repos/bharath21/coala-bears/subscribers","subscription_url":"https://api.github.com/repos/bharath21/coala-bears/subscription","commits_url":"https://api.github.com/repos/bharath21/coala-bears/commits{/sha}","git_commits_url":"https://api.github.com/repos/bharath21/coala-bears/git/commits{/sha}","comments_url":"https://api.github.com/repos/bharath21/coala-bears/comments{/number}","issue_comment_url":"https://api.github.com/repos/bharath21/coala-bears/issues/comments{/number}","contents_url":"https://api.github.com/repos/bharath21/coala-bears/contents/{+path}","compare_url":"https://api.github.com/repos/bharath21/coala-bears/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bharath21/coala-bears/merges","archive_url":"https://api.github.com/repos/bharath21/coala-bears/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bharath21/coala-bears/downloads","issues_url":"https://api.github.com/repos/bharath21/coala-bears/issues{/number}","pulls_url":"https://api.github.com/repos/bharath21/coala-bears/pulls{/number}","milestones_url":"https://api.github.com/repos/bharath21/coala-bears/milestones{/number}","notifications_url":"https://api.github.com/repos/bharath21/coala-bears/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bharath21/coala-bears/labels{/name}","releases_url":"https://api.github.com/repos/bharath21/coala-bears/releases{/id}","deployments_url":"https://api.github.com/repos/bharath21/coala-bears/deployments","created_at":"2019-02-13T09:09:31Z","updated_at":"2019-02-13T09:09:34Z","pushed_at":"2019-02-16T11:39:23Z","git_url":"git://github.com/bharath21/coala-bears.git","ssh_url":"git@github.com:bharath21/coala-bears.git","clone_url":"https://github.com/bharath21/coala-bears.git","svn_url":"https://github.com/bharath21/coala-bears","homepage":"https://coala.io/","size":2522,"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":{"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","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coala:master","ref":"master","sha":"822c2ed13c4be11dbe0313aa649c9529208e2db7","user":{"login":"coala","id":10620750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjIwNzUw","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,"node_id":"MDEwOlJlcG9zaXRvcnk1MTY4ODI4OQ==","name":"coala-bears","full_name":"coala/coala-bears","private":false,"owner":{"login":"coala","id":10620750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjIwNzUw","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},"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":"2019-02-13T19:17:49Z","pushed_at":"2019-02-16T11:39: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":2521,"stargazers_count":240,"watchers_count":240,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":606,"mirror_url":null,"archived":false,"open_issues_count":659,"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","node_id":"MDc6TGljZW5zZTE="},"forks":606,"open_issues":659,"watchers":240,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/2878"},"html":{"href":"https://github.com/coala/coala-bears/pull/2878"},"issue":{"href":"https://api.github.com/repos/coala/coala-bears/issues/2878"},"comments":{"href":"https://api.github.com/repos/coala/coala-bears/issues/2878/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/coala-bears/pulls/2878/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/2878/commits"},"statuses":{"href":"https://api.github.com/repos/coala/coala-bears/statuses/82b9ea8f4188e310cf2fac4750c32ac4666ca594"}},"author_association":"NONE"}}
{"actor":{"display_login":"gitmate-bot"}}