{"action":"created","comment":{"url":"https://api.github.com/repos/mautic/mautic/pulls/comments/184006204","pull_request_review_id":115112096,"id":184006204,"diff_hunk":"@@ -138,12 +138,14 @@\n         \"post-install-cmd\": [\n             \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::buildBootstrap\",\n             \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::clearCache\",\n-            \"php -r \\\"if(file_exists('./.git')&&file_exists('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''))){copy('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''),'./.git/hooks/pre-commit');}\\\"\"\n+            \"php -r \\\"if(file_exists('./.git')&&file_exists('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''))){copy('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''),'./.git/hooks/pre-commit');}\\\"\",\n+            \"php -r \\\"if(file_exists('./.git/hooks/pre-commit')&&(PHP_OS!='WINNT')){chmod('./build/hooks/pre-commit','0755');}\\\"\"\n         ],\n         \"post-update-cmd\": [\n             \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::buildBootstrap\",\n             \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::clearCache\",\n-            \"php -r \\\"if(file_exists('./.git')&&file_exists('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''))){copy('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''),'./.git/hooks/pre-commit');}\\\"\"\n+            \"php -r \\\"if(file_exists('./.git')&&file_exists('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''))){copy('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''),'./.git/hooks/pre-commit');}\\\"\",\n+            \"php -r \\\"if(file_exists('./.git/hooks/pre-commit')&&(PHP_OS!='WINNT')){chmod('./build/hooks/pre-commit','0755');}\\\"\"","path":"composer.json","position":6,"original_position":13,"commit_id":"ca76a16476cbb9165a0996d2a6972233fbfe8289","original_commit_id":"ca76a16476cbb9165a0996d2a6972233fbfe8289","user":{"login":"galvani","id":556426,"avatar_url":"https://avatars3.githubusercontent.com/u/556426?v=4","gravatar_id":"","url":"https://api.github.com/users/galvani","html_url":"https://github.com/galvani","followers_url":"https://api.github.com/users/galvani/followers","following_url":"https://api.github.com/users/galvani/following{/other_user}","gists_url":"https://api.github.com/users/galvani/gists{/gist_id}","starred_url":"https://api.github.com/users/galvani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galvani/subscriptions","organizations_url":"https://api.github.com/users/galvani/orgs","repos_url":"https://api.github.com/users/galvani/repos","events_url":"https://api.github.com/users/galvani/events{/privacy}","received_events_url":"https://api.github.com/users/galvani/received_events","type":"User","site_admin":false},"body":"same here","created_at":"2018-04-25T10:09:43Z","updated_at":"2018-04-25T10:09:43Z","html_url":"https://github.com/mautic/mautic/pull/6002#discussion_r184006204","pull_request_url":"https://api.github.com/repos/mautic/mautic/pulls/6002","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mautic/mautic/pulls/comments/184006204"},"html":{"href":"https://github.com/mautic/mautic/pull/6002#discussion_r184006204"},"pull_request":{"href":"https://api.github.com/repos/mautic/mautic/pulls/6002"}}},"pull_request":{"url":"https://api.github.com/repos/mautic/mautic/pulls/6002","id":183948844,"html_url":"https://github.com/mautic/mautic/pull/6002","diff_url":"https://github.com/mautic/mautic/pull/6002.diff","patch_url":"https://github.com/mautic/mautic/pull/6002.patch","issue_url":"https://api.github.com/repos/mautic/mautic/issues/6002","number":6002,"state":"open","locked":false,"title":"Make pre-comit hook executable","user":{"login":"escopecz","id":1235442,"avatar_url":"https://avatars2.githubusercontent.com/u/1235442?v=4","gravatar_id":"","url":"https://api.github.com/users/escopecz","html_url":"https://github.com/escopecz","followers_url":"https://api.github.com/users/escopecz/followers","following_url":"https://api.github.com/users/escopecz/following{/other_user}","gists_url":"https://api.github.com/users/escopecz/gists{/gist_id}","starred_url":"https://api.github.com/users/escopecz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escopecz/subscriptions","organizations_url":"https://api.github.com/users/escopecz/orgs","repos_url":"https://api.github.com/users/escopecz/repos","events_url":"https://api.github.com/users/escopecz/events{/privacy}","received_events_url":"https://api.github.com/users/escopecz/received_events","type":"User","site_admin":false},"body":"**Please be sure you are submitting this against the _staging_ branch.**\r\n\r\n[//]: # ( Please answer the following questions: )\r\n\r\n| Q  | A\r\n| --- | ---\r\n| Bug fix? | Y\r\n| New feature? | N\r\n| Automated tests included? | N\r\n| Related user documentation PR URL | /\r\n| Related developer documentation PR URL | /\r\n| Issues addressed (#s or URLs) | /\r\n| BC breaks? | N\r\n| Deprecations? | N\r\n\r\n[//]: # ( Note that all new features should have a related user and/or developer documentation PR in their respective repositories. )\r\n\r\n[//]: # ( Required: )\r\n#### Description:\r\nWe have a pre-commit hook that is installed to the .git folder automatically when running `composer install` (or update), but it often doesn't work because it doesn't have permission to execute. This PR adds that to composer.json.\r\n\r\nSpecial thanks to @galvani for help with this PR!\r\n\r\n#### Steps to test this PR:\r\n1. Run `composer install` and notice the new command is executed and it does not fail.\r\n2. Check that .git/hooks/pre-commit` exists and it has permission to execute.\r\n","created_at":"2018-04-25T07:43:11Z","updated_at":"2018-04-25T10:09:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b55b4872dfbc47fa6f75d05fc8f8f532ed830fc8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":154414515,"url":"https://api.github.com/repos/mautic/mautic/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":575676568,"url":"https://api.github.com/repos/mautic/mautic/labels/WIP","name":"WIP","color":"006b75","default":false}],"milestone":{"url":"https://api.github.com/repos/mautic/mautic/milestones/44","html_url":"https://github.com/mautic/mautic/milestone/44","labels_url":"https://api.github.com/repos/mautic/mautic/milestones/44/labels","id":3209824,"number":44,"title":"2.14.0","description":null,"creator":{"login":"dbhurley","id":5251425,"avatar_url":"https://avatars1.githubusercontent.com/u/5251425?v=4","gravatar_id":"","url":"https://api.github.com/users/dbhurley","html_url":"https://github.com/dbhurley","followers_url":"https://api.github.com/users/dbhurley/followers","following_url":"https://api.github.com/users/dbhurley/following{/other_user}","gists_url":"https://api.github.com/users/dbhurley/gists{/gist_id}","starred_url":"https://api.github.com/users/dbhurley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbhurley/subscriptions","organizations_url":"https://api.github.com/users/dbhurley/orgs","repos_url":"https://api.github.com/users/dbhurley/repos","events_url":"https://api.github.com/users/dbhurley/events{/privacy}","received_events_url":"https://api.github.com/users/dbhurley/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":4,"state":"open","created_at":"2018-03-22T16:56:09Z","updated_at":"2018-04-25T09:59:35Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/mautic/mautic/pulls/6002/commits","review_comments_url":"https://api.github.com/repos/mautic/mautic/pulls/6002/comments","review_comment_url":"https://api.github.com/repos/mautic/mautic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/6002/comments","statuses_url":"https://api.github.com/repos/mautic/mautic/statuses/ca76a16476cbb9165a0996d2a6972233fbfe8289","head":{"label":"escopecz:make-precomithook-executable","ref":"make-precomithook-executable","sha":"ca76a16476cbb9165a0996d2a6972233fbfe8289","user":{"login":"escopecz","id":1235442,"avatar_url":"https://avatars2.githubusercontent.com/u/1235442?v=4","gravatar_id":"","url":"https://api.github.com/users/escopecz","html_url":"https://github.com/escopecz","followers_url":"https://api.github.com/users/escopecz/followers","following_url":"https://api.github.com/users/escopecz/following{/other_user}","gists_url":"https://api.github.com/users/escopecz/gists{/gist_id}","starred_url":"https://api.github.com/users/escopecz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escopecz/subscriptions","organizations_url":"https://api.github.com/users/escopecz/orgs","repos_url":"https://api.github.com/users/escopecz/repos","events_url":"https://api.github.com/users/escopecz/events{/privacy}","received_events_url":"https://api.github.com/users/escopecz/received_events","type":"User","site_admin":false},"repo":{"id":31202004,"name":"mautic","full_name":"escopecz/mautic","owner":{"login":"escopecz","id":1235442,"avatar_url":"https://avatars2.githubusercontent.com/u/1235442?v=4","gravatar_id":"","url":"https://api.github.com/users/escopecz","html_url":"https://github.com/escopecz","followers_url":"https://api.github.com/users/escopecz/followers","following_url":"https://api.github.com/users/escopecz/following{/other_user}","gists_url":"https://api.github.com/users/escopecz/gists{/gist_id}","starred_url":"https://api.github.com/users/escopecz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escopecz/subscriptions","organizations_url":"https://api.github.com/users/escopecz/orgs","repos_url":"https://api.github.com/users/escopecz/repos","events_url":"https://api.github.com/users/escopecz/events{/privacy}","received_events_url":"https://api.github.com/users/escopecz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/escopecz/mautic","description":"Mautic: Open Source Marketing Automation Software.","fork":true,"url":"https://api.github.com/repos/escopecz/mautic","forks_url":"https://api.github.com/repos/escopecz/mautic/forks","keys_url":"https://api.github.com/repos/escopecz/mautic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/escopecz/mautic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/escopecz/mautic/teams","hooks_url":"https://api.github.com/repos/escopecz/mautic/hooks","issue_events_url":"https://api.github.com/repos/escopecz/mautic/issues/events{/number}","events_url":"https://api.github.com/repos/escopecz/mautic/events","assignees_url":"https://api.github.com/repos/escopecz/mautic/assignees{/user}","branches_url":"https://api.github.com/repos/escopecz/mautic/branches{/branch}","tags_url":"https://api.github.com/repos/escopecz/mautic/tags","blobs_url":"https://api.github.com/repos/escopecz/mautic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/escopecz/mautic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/escopecz/mautic/git/refs{/sha}","trees_url":"https://api.github.com/repos/escopecz/mautic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/escopecz/mautic/statuses/{sha}","languages_url":"https://api.github.com/repos/escopecz/mautic/languages","stargazers_url":"https://api.github.com/repos/escopecz/mautic/stargazers","contributors_url":"https://api.github.com/repos/escopecz/mautic/contributors","subscribers_url":"https://api.github.com/repos/escopecz/mautic/subscribers","subscription_url":"https://api.github.com/repos/escopecz/mautic/subscription","commits_url":"https://api.github.com/repos/escopecz/mautic/commits{/sha}","git_commits_url":"https://api.github.com/repos/escopecz/mautic/git/commits{/sha}","comments_url":"https://api.github.com/repos/escopecz/mautic/comments{/number}","issue_comment_url":"https://api.github.com/repos/escopecz/mautic/issues/comments{/number}","contents_url":"https://api.github.com/repos/escopecz/mautic/contents/{+path}","compare_url":"https://api.github.com/repos/escopecz/mautic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/escopecz/mautic/merges","archive_url":"https://api.github.com/repos/escopecz/mautic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/escopecz/mautic/downloads","issues_url":"https://api.github.com/repos/escopecz/mautic/issues{/number}","pulls_url":"https://api.github.com/repos/escopecz/mautic/pulls{/number}","milestones_url":"https://api.github.com/repos/escopecz/mautic/milestones{/number}","notifications_url":"https://api.github.com/repos/escopecz/mautic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/escopecz/mautic/labels{/name}","releases_url":"https://api.github.com/repos/escopecz/mautic/releases{/id}","deployments_url":"https://api.github.com/repos/escopecz/mautic/deployments","created_at":"2015-02-23T09:52:24Z","updated_at":"2015-03-09T14:56:38Z","pushed_at":"2018-04-25T07:39:38Z","git_url":"git://github.com/escopecz/mautic.git","ssh_url":"git@github.com:escopecz/mautic.git","clone_url":"https://github.com/escopecz/mautic.git","svn_url":"https://github.com/escopecz/mautic","homepage":"http://mautic.org","size":80269,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mautic:staging","ref":"staging","sha":"be360da0943ebd4e4757641a733ae533db99cc41","user":{"login":"mautic","id":5257677,"avatar_url":"https://avatars0.githubusercontent.com/u/5257677?v=4","gravatar_id":"","url":"https://api.github.com/users/mautic","html_url":"https://github.com/mautic","followers_url":"https://api.github.com/users/mautic/followers","following_url":"https://api.github.com/users/mautic/following{/other_user}","gists_url":"https://api.github.com/users/mautic/gists{/gist_id}","starred_url":"https://api.github.com/users/mautic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mautic/subscriptions","organizations_url":"https://api.github.com/users/mautic/orgs","repos_url":"https://api.github.com/users/mautic/repos","events_url":"https://api.github.com/users/mautic/events{/privacy}","received_events_url":"https://api.github.com/users/mautic/received_events","type":"Organization","site_admin":false},"repo":{"id":12204147,"name":"mautic","full_name":"mautic/mautic","owner":{"login":"mautic","id":5257677,"avatar_url":"https://avatars0.githubusercontent.com/u/5257677?v=4","gravatar_id":"","url":"https://api.github.com/users/mautic","html_url":"https://github.com/mautic","followers_url":"https://api.github.com/users/mautic/followers","following_url":"https://api.github.com/users/mautic/following{/other_user}","gists_url":"https://api.github.com/users/mautic/gists{/gist_id}","starred_url":"https://api.github.com/users/mautic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mautic/subscriptions","organizations_url":"https://api.github.com/users/mautic/orgs","repos_url":"https://api.github.com/users/mautic/repos","events_url":"https://api.github.com/users/mautic/events{/privacy}","received_events_url":"https://api.github.com/users/mautic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mautic/mautic","description":"Mautic: Open Source Marketing Automation Software.","fork":false,"url":"https://api.github.com/repos/mautic/mautic","forks_url":"https://api.github.com/repos/mautic/mautic/forks","keys_url":"https://api.github.com/repos/mautic/mautic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mautic/mautic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mautic/mautic/teams","hooks_url":"https://api.github.com/repos/mautic/mautic/hooks","issue_events_url":"https://api.github.com/repos/mautic/mautic/issues/events{/number}","events_url":"https://api.github.com/repos/mautic/mautic/events","assignees_url":"https://api.github.com/repos/mautic/mautic/assignees{/user}","branches_url":"https://api.github.com/repos/mautic/mautic/branches{/branch}","tags_url":"https://api.github.com/repos/mautic/mautic/tags","blobs_url":"https://api.github.com/repos/mautic/mautic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mautic/mautic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mautic/mautic/git/refs{/sha}","trees_url":"https://api.github.com/repos/mautic/mautic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mautic/mautic/statuses/{sha}","languages_url":"https://api.github.com/repos/mautic/mautic/languages","stargazers_url":"https://api.github.com/repos/mautic/mautic/stargazers","contributors_url":"https://api.github.com/repos/mautic/mautic/contributors","subscribers_url":"https://api.github.com/repos/mautic/mautic/subscribers","subscription_url":"https://api.github.com/repos/mautic/mautic/subscription","commits_url":"https://api.github.com/repos/mautic/mautic/commits{/sha}","git_commits_url":"https://api.github.com/repos/mautic/mautic/git/commits{/sha}","comments_url":"https://api.github.com/repos/mautic/mautic/comments{/number}","issue_comment_url":"https://api.github.com/repos/mautic/mautic/issues/comments{/number}","contents_url":"https://api.github.com/repos/mautic/mautic/contents/{+path}","compare_url":"https://api.github.com/repos/mautic/mautic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mautic/mautic/merges","archive_url":"https://api.github.com/repos/mautic/mautic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mautic/mautic/downloads","issues_url":"https://api.github.com/repos/mautic/mautic/issues{/number}","pulls_url":"https://api.github.com/repos/mautic/mautic/pulls{/number}","milestones_url":"https://api.github.com/repos/mautic/mautic/milestones{/number}","notifications_url":"https://api.github.com/repos/mautic/mautic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mautic/mautic/labels{/name}","releases_url":"https://api.github.com/repos/mautic/mautic/releases{/id}","deployments_url":"https://api.github.com/repos/mautic/mautic/deployments","created_at":"2013-08-19T00:36:28Z","updated_at":"2018-04-24T23:12:51Z","pushed_at":"2018-04-25T07:43:12Z","git_url":"git://github.com/mautic/mautic.git","ssh_url":"git@github.com:mautic/mautic.git","clone_url":"https://github.com/mautic/mautic.git","svn_url":"https://github.com/mautic/mautic","homepage":"https://www.mautic.org","size":79952,"stargazers_count":2353,"watchers_count":2353,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":878,"mirror_url":null,"archived":false,"open_issues_count":539,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":878,"open_issues":539,"watchers":2353,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/mautic/mautic/pulls/6002"},"html":{"href":"https://github.com/mautic/mautic/pull/6002"},"issue":{"href":"https://api.github.com/repos/mautic/mautic/issues/6002"},"comments":{"href":"https://api.github.com/repos/mautic/mautic/issues/6002/comments"},"review_comments":{"href":"https://api.github.com/repos/mautic/mautic/pulls/6002/comments"},"review_comment":{"href":"https://api.github.com/repos/mautic/mautic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mautic/mautic/pulls/6002/commits"},"statuses":{"href":"https://api.github.com/repos/mautic/mautic/statuses/ca76a16476cbb9165a0996d2a6972233fbfe8289"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"galvani"}}