{"action":"created","comment":{"url":"https://api.github.com/repos/phpro/grumphp/pulls/comments/78364787","id":78364787,"diff_hunk":"@@ -0,0 +1,74 @@\n+<?php\n+\n+namespace GrumPHP\\Task;\n+\n+use GrumPHP\\Runner\\TaskResult;\n+use GrumPHP\\Runner\\TaskResultInterface;\n+use GrumPHP\\Task\\Context\\ContextInterface;\n+use GrumPHP\\Task\\Context\\GitPreCommitContext;\n+use GrumPHP\\Task\\Context\\RunContext;\n+use Symfony\\Component\\OptionsResolver\\OptionsResolver;\n+\n+/**\n+ * PHP parallel lint task.\n+ */\n+class PHPLint extends AbstractExternalTask\n+{\n+    /**\n+     * @return string\n+     */\n+    public function getName()\n+    {\n+        return 'phplint';\n+    }\n+\n+    /**\n+     * @return OptionsResolver\n+     */\n+    public function getConfigurableOptions()\n+    {\n+        $resolver = new OptionsResolver();\n+        $resolver->setDefaults(array(\n+            'jobs' => null,\n+            'to_check' => array('.'),\n+            'exclude' => array(),\n+        ));\n+\n+        $resolver->setAllowedTypes('jobs', array('int', 'null'));\n+        $resolver->setAllowedTypes('to_check', 'array');\n+        $resolver->setAllowedTypes('exclude', 'array');\n+\n+        return $resolver;\n+    }\n+\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function canRunInContext(ContextInterface $context)\n+    {\n+        return $context instanceof RunContext || $context instanceof GitPreCommitContext;\n+    }\n+\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function run(ContextInterface $context)\n+    {\n+        $config = $this->getConfiguration();\n+\n+        $args = $this->processBuilder->createArgumentsForCommand('parallel-lint');\n+        $args->add('--no-colors');\n+        $args->addOptionalArgument('-j', $config['jobs']);","path":"src/GrumPHP/Task/PHPLint.php","position":61,"original_position":61,"commit_id":"cc35fe1d7429b5b37ca0dbf01345f27a84af3efe","original_commit_id":"cc35fe1d7429b5b37ca0dbf01345f27a84af3efe","user":{"login":"veewee","id":1618158,"avatar_url":"https://avatars.githubusercontent.com/u/1618158?v=3","gravatar_id":"","url":"https://api.github.com/users/veewee","html_url":"https://github.com/veewee","followers_url":"https://api.github.com/users/veewee/followers","following_url":"https://api.github.com/users/veewee/following{/other_user}","gists_url":"https://api.github.com/users/veewee/gists{/gist_id}","starred_url":"https://api.github.com/users/veewee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veewee/subscriptions","organizations_url":"https://api.github.com/users/veewee/orgs","repos_url":"https://api.github.com/users/veewee/repos","events_url":"https://api.github.com/users/veewee/events{/privacy}","received_events_url":"https://api.github.com/users/veewee/received_events","type":"User","site_admin":false},"body":"You are not setting the amount of jobs with this command. The command should be something like `-j %s`.","created_at":"2016-09-12T12:45:49Z","updated_at":"2016-09-12T12:45:49Z","html_url":"https://github.com/phpro/grumphp/pull/182#discussion_r78364787","pull_request_url":"https://api.github.com/repos/phpro/grumphp/pulls/182","_links":{"self":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/comments/78364787"},"html":{"href":"https://github.com/phpro/grumphp/pull/182#discussion_r78364787"},"pull_request":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/182"}}},"pull_request":{"url":"https://api.github.com/repos/phpro/grumphp/pulls/182","id":84848333,"html_url":"https://github.com/phpro/grumphp/pull/182","diff_url":"https://github.com/phpro/grumphp/pull/182.diff","patch_url":"https://github.com/phpro/grumphp/pull/182.patch","issue_url":"https://api.github.com/repos/phpro/grumphp/issues/182","number":182,"state":"open","locked":false,"title":"Add a parallel php lint task","user":{"login":"bertptrs","id":861864,"avatar_url":"https://avatars.githubusercontent.com/u/861864?v=3","gravatar_id":"","url":"https://api.github.com/users/bertptrs","html_url":"https://github.com/bertptrs","followers_url":"https://api.github.com/users/bertptrs/followers","following_url":"https://api.github.com/users/bertptrs/following{/other_user}","gists_url":"https://api.github.com/users/bertptrs/gists{/gist_id}","starred_url":"https://api.github.com/users/bertptrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertptrs/subscriptions","organizations_url":"https://api.github.com/users/bertptrs/orgs","repos_url":"https://api.github.com/users/bertptrs/repos","events_url":"https://api.github.com/users/bertptrs/events{/privacy}","received_events_url":"https://api.github.com/users/bertptrs/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Branch        | master\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | yes\r\n| Deprecations? | yes\r\n| Tests pass?   | yes\r\n| Documented?   | yes\r\n| Fixed tickets | 165\r\n\r\nThis pull request adds a task to lint all php files to GrumPHP. It uses the parallel php linter as suggested in #165.\r\n\r\nPlease let me know if I missed some crucial documentation or made some weird errors.","created_at":"2016-09-12T10:30:06Z","updated_at":"2016-09-12T12:45:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8836e34732acffbc6c693ebce4cd7e9257351663","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/phpro/grumphp/pulls/182/commits","review_comments_url":"https://api.github.com/repos/phpro/grumphp/pulls/182/comments","review_comment_url":"https://api.github.com/repos/phpro/grumphp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phpro/grumphp/issues/182/comments","statuses_url":"https://api.github.com/repos/phpro/grumphp/statuses/cc35fe1d7429b5b37ca0dbf01345f27a84af3efe","head":{"label":"bertptrs:feature-165","ref":"feature-165","sha":"cc35fe1d7429b5b37ca0dbf01345f27a84af3efe","user":{"login":"bertptrs","id":861864,"avatar_url":"https://avatars.githubusercontent.com/u/861864?v=3","gravatar_id":"","url":"https://api.github.com/users/bertptrs","html_url":"https://github.com/bertptrs","followers_url":"https://api.github.com/users/bertptrs/followers","following_url":"https://api.github.com/users/bertptrs/following{/other_user}","gists_url":"https://api.github.com/users/bertptrs/gists{/gist_id}","starred_url":"https://api.github.com/users/bertptrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertptrs/subscriptions","organizations_url":"https://api.github.com/users/bertptrs/orgs","repos_url":"https://api.github.com/users/bertptrs/repos","events_url":"https://api.github.com/users/bertptrs/events{/privacy}","received_events_url":"https://api.github.com/users/bertptrs/received_events","type":"User","site_admin":false},"repo":{"id":67991877,"name":"grumphp","full_name":"bertptrs/grumphp","owner":{"login":"bertptrs","id":861864,"avatar_url":"https://avatars.githubusercontent.com/u/861864?v=3","gravatar_id":"","url":"https://api.github.com/users/bertptrs","html_url":"https://github.com/bertptrs","followers_url":"https://api.github.com/users/bertptrs/followers","following_url":"https://api.github.com/users/bertptrs/following{/other_user}","gists_url":"https://api.github.com/users/bertptrs/gists{/gist_id}","starred_url":"https://api.github.com/users/bertptrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertptrs/subscriptions","organizations_url":"https://api.github.com/users/bertptrs/orgs","repos_url":"https://api.github.com/users/bertptrs/repos","events_url":"https://api.github.com/users/bertptrs/events{/privacy}","received_events_url":"https://api.github.com/users/bertptrs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bertptrs/grumphp","description":"A PHP code-quality tool","fork":true,"url":"https://api.github.com/repos/bertptrs/grumphp","forks_url":"https://api.github.com/repos/bertptrs/grumphp/forks","keys_url":"https://api.github.com/repos/bertptrs/grumphp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bertptrs/grumphp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bertptrs/grumphp/teams","hooks_url":"https://api.github.com/repos/bertptrs/grumphp/hooks","issue_events_url":"https://api.github.com/repos/bertptrs/grumphp/issues/events{/number}","events_url":"https://api.github.com/repos/bertptrs/grumphp/events","assignees_url":"https://api.github.com/repos/bertptrs/grumphp/assignees{/user}","branches_url":"https://api.github.com/repos/bertptrs/grumphp/branches{/branch}","tags_url":"https://api.github.com/repos/bertptrs/grumphp/tags","blobs_url":"https://api.github.com/repos/bertptrs/grumphp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bertptrs/grumphp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bertptrs/grumphp/git/refs{/sha}","trees_url":"https://api.github.com/repos/bertptrs/grumphp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bertptrs/grumphp/statuses/{sha}","languages_url":"https://api.github.com/repos/bertptrs/grumphp/languages","stargazers_url":"https://api.github.com/repos/bertptrs/grumphp/stargazers","contributors_url":"https://api.github.com/repos/bertptrs/grumphp/contributors","subscribers_url":"https://api.github.com/repos/bertptrs/grumphp/subscribers","subscription_url":"https://api.github.com/repos/bertptrs/grumphp/subscription","commits_url":"https://api.github.com/repos/bertptrs/grumphp/commits{/sha}","git_commits_url":"https://api.github.com/repos/bertptrs/grumphp/git/commits{/sha}","comments_url":"https://api.github.com/repos/bertptrs/grumphp/comments{/number}","issue_comment_url":"https://api.github.com/repos/bertptrs/grumphp/issues/comments{/number}","contents_url":"https://api.github.com/repos/bertptrs/grumphp/contents/{+path}","compare_url":"https://api.github.com/repos/bertptrs/grumphp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bertptrs/grumphp/merges","archive_url":"https://api.github.com/repos/bertptrs/grumphp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bertptrs/grumphp/downloads","issues_url":"https://api.github.com/repos/bertptrs/grumphp/issues{/number}","pulls_url":"https://api.github.com/repos/bertptrs/grumphp/pulls{/number}","milestones_url":"https://api.github.com/repos/bertptrs/grumphp/milestones{/number}","notifications_url":"https://api.github.com/repos/bertptrs/grumphp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bertptrs/grumphp/labels{/name}","releases_url":"https://api.github.com/repos/bertptrs/grumphp/releases{/id}","deployments_url":"https://api.github.com/repos/bertptrs/grumphp/deployments","created_at":"2016-09-12T08:45:51Z","updated_at":"2016-09-12T08:45:53Z","pushed_at":"2016-09-12T10:26:43Z","git_url":"git://github.com/bertptrs/grumphp.git","ssh_url":"git@github.com:bertptrs/grumphp.git","clone_url":"https://github.com/bertptrs/grumphp.git","svn_url":"https://github.com/bertptrs/grumphp","homepage":null,"size":929,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"phpro:master","ref":"master","sha":"ec3a6c30878469ba499455c3926333672d6fb0ac","user":{"login":"phpro","id":6286150,"avatar_url":"https://avatars.githubusercontent.com/u/6286150?v=3","gravatar_id":"","url":"https://api.github.com/users/phpro","html_url":"https://github.com/phpro","followers_url":"https://api.github.com/users/phpro/followers","following_url":"https://api.github.com/users/phpro/following{/other_user}","gists_url":"https://api.github.com/users/phpro/gists{/gist_id}","starred_url":"https://api.github.com/users/phpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpro/subscriptions","organizations_url":"https://api.github.com/users/phpro/orgs","repos_url":"https://api.github.com/users/phpro/repos","events_url":"https://api.github.com/users/phpro/events{/privacy}","received_events_url":"https://api.github.com/users/phpro/received_events","type":"Organization","site_admin":false},"repo":{"id":32482750,"name":"grumphp","full_name":"phpro/grumphp","owner":{"login":"phpro","id":6286150,"avatar_url":"https://avatars.githubusercontent.com/u/6286150?v=3","gravatar_id":"","url":"https://api.github.com/users/phpro","html_url":"https://github.com/phpro","followers_url":"https://api.github.com/users/phpro/followers","following_url":"https://api.github.com/users/phpro/following{/other_user}","gists_url":"https://api.github.com/users/phpro/gists{/gist_id}","starred_url":"https://api.github.com/users/phpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpro/subscriptions","organizations_url":"https://api.github.com/users/phpro/orgs","repos_url":"https://api.github.com/users/phpro/repos","events_url":"https://api.github.com/users/phpro/events{/privacy}","received_events_url":"https://api.github.com/users/phpro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phpro/grumphp","description":"A PHP code-quality tool","fork":false,"url":"https://api.github.com/repos/phpro/grumphp","forks_url":"https://api.github.com/repos/phpro/grumphp/forks","keys_url":"https://api.github.com/repos/phpro/grumphp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phpro/grumphp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phpro/grumphp/teams","hooks_url":"https://api.github.com/repos/phpro/grumphp/hooks","issue_events_url":"https://api.github.com/repos/phpro/grumphp/issues/events{/number}","events_url":"https://api.github.com/repos/phpro/grumphp/events","assignees_url":"https://api.github.com/repos/phpro/grumphp/assignees{/user}","branches_url":"https://api.github.com/repos/phpro/grumphp/branches{/branch}","tags_url":"https://api.github.com/repos/phpro/grumphp/tags","blobs_url":"https://api.github.com/repos/phpro/grumphp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phpro/grumphp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phpro/grumphp/git/refs{/sha}","trees_url":"https://api.github.com/repos/phpro/grumphp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phpro/grumphp/statuses/{sha}","languages_url":"https://api.github.com/repos/phpro/grumphp/languages","stargazers_url":"https://api.github.com/repos/phpro/grumphp/stargazers","contributors_url":"https://api.github.com/repos/phpro/grumphp/contributors","subscribers_url":"https://api.github.com/repos/phpro/grumphp/subscribers","subscription_url":"https://api.github.com/repos/phpro/grumphp/subscription","commits_url":"https://api.github.com/repos/phpro/grumphp/commits{/sha}","git_commits_url":"https://api.github.com/repos/phpro/grumphp/git/commits{/sha}","comments_url":"https://api.github.com/repos/phpro/grumphp/comments{/number}","issue_comment_url":"https://api.github.com/repos/phpro/grumphp/issues/comments{/number}","contents_url":"https://api.github.com/repos/phpro/grumphp/contents/{+path}","compare_url":"https://api.github.com/repos/phpro/grumphp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phpro/grumphp/merges","archive_url":"https://api.github.com/repos/phpro/grumphp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phpro/grumphp/downloads","issues_url":"https://api.github.com/repos/phpro/grumphp/issues{/number}","pulls_url":"https://api.github.com/repos/phpro/grumphp/pulls{/number}","milestones_url":"https://api.github.com/repos/phpro/grumphp/milestones{/number}","notifications_url":"https://api.github.com/repos/phpro/grumphp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phpro/grumphp/labels{/name}","releases_url":"https://api.github.com/repos/phpro/grumphp/releases{/id}","deployments_url":"https://api.github.com/repos/phpro/grumphp/deployments","created_at":"2015-03-18T20:34:36Z","updated_at":"2016-09-09T14:35:24Z","pushed_at":"2016-09-12T10:30:07Z","git_url":"git://github.com/phpro/grumphp.git","ssh_url":"git@github.com:phpro/grumphp.git","clone_url":"https://github.com/phpro/grumphp.git","svn_url":"https://github.com/phpro/grumphp","homepage":null,"size":1032,"stargazers_count":1205,"watchers_count":1205,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":19,"forks":79,"open_issues":19,"watchers":1205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/182"},"html":{"href":"https://github.com/phpro/grumphp/pull/182"},"issue":{"href":"https://api.github.com/repos/phpro/grumphp/issues/182"},"comments":{"href":"https://api.github.com/repos/phpro/grumphp/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phpro/grumphp/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/phpro/grumphp/statuses/cc35fe1d7429b5b37ca0dbf01345f27a84af3efe"}}}}
{"actor":{"display_login":"veewee"}}