{"action":"created","issue":{"url":"https://api.github.com/repos/deployphp/deployer/issues/460","labels_url":"https://api.github.com/repos/deployphp/deployer/issues/460/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/deployer/issues/460/comments","events_url":"https://api.github.com/repos/deployphp/deployer/issues/460/events","html_url":"https://github.com/deployphp/deployer/issues/460","id":107495870,"number":460,"title":"Add support for composer github oauth token","user":{"login":"hason","id":288535,"avatar_url":"https://avatars.githubusercontent.com/u/288535?v=3","gravatar_id":"","url":"https://api.github.com/users/hason","html_url":"https://github.com/hason","followers_url":"https://api.github.com/users/hason/followers","following_url":"https://api.github.com/users/hason/following{/other_user}","gists_url":"https://api.github.com/users/hason/gists{/gist_id}","starred_url":"https://api.github.com/users/hason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hason/subscriptions","organizations_url":"https://api.github.com/users/hason/orgs","repos_url":"https://api.github.com/users/hason/repos","events_url":"https://api.github.com/users/hason/events{/privacy}","received_events_url":"https://api.github.com/users/hason/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-21T11:58:36Z","updated_at":"2015-09-21T13:54:38Z","closed_at":"2015-09-21T13:54:37Z","body":"```php\r\ntask('deploy:vendors', function () {\r\n    if (commandExist('composer')) {\r\n        $composer = 'composer';\r\n    } else {\r\n        run(\"cd {{release_path}} && curl -sS https://getcomposer.org/installer | php\");\r\n        $composer = 'php composer.phar';\r\n    }\r\n\r\n    if (!empty(get('github_oauth_token'))) {\r\n        run(\"cd {{release_path}} && {{env_vars}} $composer config -g github-oauth.github.com $token\");\r\n    }\r\n\r\n    run(\"cd {{release_path}} && {{env_vars}} $composer {{composer_options}}\");\r\n\r\n})->desc('Installing vendors');\r\n```"},"comment":{"url":"https://api.github.com/repos/deployphp/deployer/issues/comments/141986848","html_url":"https://github.com/deployphp/deployer/issues/460#issuecomment-141986848","issue_url":"https://api.github.com/repos/deployphp/deployer/issues/460","id":141986848,"user":{"login":"elfet","id":141232,"avatar_url":"https://avatars.githubusercontent.com/u/141232?v=3","gravatar_id":"","url":"https://api.github.com/users/elfet","html_url":"https://github.com/elfet","followers_url":"https://api.github.com/users/elfet/followers","following_url":"https://api.github.com/users/elfet/following{/other_user}","gists_url":"https://api.github.com/users/elfet/gists{/gist_id}","starred_url":"https://api.github.com/users/elfet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elfet/subscriptions","organizations_url":"https://api.github.com/users/elfet/orgs","repos_url":"https://api.github.com/users/elfet/repos","events_url":"https://api.github.com/users/elfet/events{/privacy}","received_events_url":"https://api.github.com/users/elfet/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T13:54:37Z","updated_at":"2015-09-21T13:54:37Z","body":"Please review the guidelines for contributing to this repository."}}