{"action":"created","comment":{"url":"https://api.github.com/repos/kevva/github-add-collab/pulls/comments/26449279","id":26449279,"diff_hunk":"@@ -0,0 +1,35 @@\n+#!/usr/bin/env node\n+'use strict';\n+\n+var meow = require('meow');\n+var addCollab = require('./');\n+\n+var cli = meow({\n+\thelp: [\n+\t\t'Usage',\n+\t\t'  $ github-add-collab <owner> <collaborator> <space separated repos>'\n+\t\t'  $ github-add-collab sindresohus tunnckoCore meow chalk',\n+\t\t'  $ github-add-collab sindresohus tunnckoCore meow chalk --token 523ef69119eadg12',\n+\t\t'',\n+\t\t'Options',\n+\t\t'  -t, --token    Github token to authenticate with'\n+\t].join('\\n')\n+}, {\n+\tstring: ['token'],\n+\talias: {t: 'token'}\n+});\n+\n+var owner = cli.input[0];\n+var user = cli.input[1];\n+var repos = cli.input.slice(2);\n+var opts = cli.flags;\n+opts.owner = owner;\n+\n+addCollab(user, repos, opts, function (err, data) {\n+\tif (err) {\n+\t\tconsole.error(err.message);\n+\t\tprocess.exit(1);\n+\t}\n+\tconsole.log('Successfully added collaborator');\n+\tprocess.exit(0);\n+})","path":"cli.js","position":35,"original_position":35,"commit_id":"e4504fbda7c9e7215e897159d5740d68954eb9da","original_commit_id":"e4504fbda7c9e7215e897159d5740d68954eb9da","user":{"login":"arthurvr","id":6025224,"avatar_url":"https://avatars.githubusercontent.com/u/6025224?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurvr","html_url":"https://github.com/arthurvr","followers_url":"https://api.github.com/users/arthurvr/followers","following_url":"https://api.github.com/users/arthurvr/following{/other_user}","gists_url":"https://api.github.com/users/arthurvr/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurvr/subscriptions","organizations_url":"https://api.github.com/users/arthurvr/orgs","repos_url":"https://api.github.com/users/arthurvr/repos","events_url":"https://api.github.com/users/arthurvr/events{/privacy}","received_events_url":"https://api.github.com/users/arthurvr/received_events","type":"User","site_admin":false},"body":"missing semicolon","created_at":"2015-03-15T16:43:01Z","updated_at":"2015-03-15T16:43:01Z","html_url":"https://github.com/kevva/github-add-collab/pull/1#discussion_r26449279","pull_request_url":"https://api.github.com/repos/kevva/github-add-collab/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/kevva/github-add-collab/pulls/comments/26449279"},"html":{"href":"https://github.com/kevva/github-add-collab/pull/1#discussion_r26449279"},"pull_request":{"href":"https://api.github.com/repos/kevva/github-add-collab/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/kevva/github-add-collab/pulls/1","id":31202929,"html_url":"https://github.com/kevva/github-add-collab/pull/1","diff_url":"https://github.com/kevva/github-add-collab/pull/1.diff","patch_url":"https://github.com/kevva/github-add-collab/pull/1.patch","issue_url":"https://api.github.com/repos/kevva/github-add-collab/issues/1","number":1,"state":"open","locked":false,"title":"add cli","user":{"login":"tunnckoCore","id":5038030,"avatar_url":"https://avatars.githubusercontent.com/u/5038030?v=3","gravatar_id":"","url":"https://api.github.com/users/tunnckoCore","html_url":"https://github.com/tunnckoCore","followers_url":"https://api.github.com/users/tunnckoCore/followers","following_url":"https://api.github.com/users/tunnckoCore/following{/other_user}","gists_url":"https://api.github.com/users/tunnckoCore/gists{/gist_id}","starred_url":"https://api.github.com/users/tunnckoCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunnckoCore/subscriptions","organizations_url":"https://api.github.com/users/tunnckoCore/orgs","repos_url":"https://api.github.com/users/tunnckoCore/repos","events_url":"https://api.github.com/users/tunnckoCore/events{/privacy}","received_events_url":"https://api.github.com/users/tunnckoCore/received_events","type":"User","site_admin":false},"body":"is okey the order?","created_at":"2015-03-15T16:41:20Z","updated_at":"2015-03-15T16:43:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80d38edaf38eb4ef1221114ea6b6455dbb922b4b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kevva/github-add-collab/pulls/1/commits","review_comments_url":"https://api.github.com/repos/kevva/github-add-collab/pulls/1/comments","review_comment_url":"https://api.github.com/repos/kevva/github-add-collab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kevva/github-add-collab/issues/1/comments","statuses_url":"https://api.github.com/repos/kevva/github-add-collab/statuses/e4504fbda7c9e7215e897159d5740d68954eb9da","head":{"label":"tunnckoCore:master","ref":"master","sha":"e4504fbda7c9e7215e897159d5740d68954eb9da","user":{"login":"tunnckoCore","id":5038030,"avatar_url":"https://avatars.githubusercontent.com/u/5038030?v=3","gravatar_id":"","url":"https://api.github.com/users/tunnckoCore","html_url":"https://github.com/tunnckoCore","followers_url":"https://api.github.com/users/tunnckoCore/followers","following_url":"https://api.github.com/users/tunnckoCore/following{/other_user}","gists_url":"https://api.github.com/users/tunnckoCore/gists{/gist_id}","starred_url":"https://api.github.com/users/tunnckoCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunnckoCore/subscriptions","organizations_url":"https://api.github.com/users/tunnckoCore/orgs","repos_url":"https://api.github.com/users/tunnckoCore/repos","events_url":"https://api.github.com/users/tunnckoCore/events{/privacy}","received_events_url":"https://api.github.com/users/tunnckoCore/received_events","type":"User","site_admin":false},"repo":{"id":32268749,"name":"github-add-collab","full_name":"tunnckoCore/github-add-collab","owner":{"login":"tunnckoCore","id":5038030,"avatar_url":"https://avatars.githubusercontent.com/u/5038030?v=3","gravatar_id":"","url":"https://api.github.com/users/tunnckoCore","html_url":"https://github.com/tunnckoCore","followers_url":"https://api.github.com/users/tunnckoCore/followers","following_url":"https://api.github.com/users/tunnckoCore/following{/other_user}","gists_url":"https://api.github.com/users/tunnckoCore/gists{/gist_id}","starred_url":"https://api.github.com/users/tunnckoCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunnckoCore/subscriptions","organizations_url":"https://api.github.com/users/tunnckoCore/orgs","repos_url":"https://api.github.com/users/tunnckoCore/repos","events_url":"https://api.github.com/users/tunnckoCore/events{/privacy}","received_events_url":"https://api.github.com/users/tunnckoCore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tunnckoCore/github-add-collab","description":"Add collaborators to Github repos","fork":true,"url":"https://api.github.com/repos/tunnckoCore/github-add-collab","forks_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/forks","keys_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/teams","hooks_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/hooks","issue_events_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/issues/events{/number}","events_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/events","assignees_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/assignees{/user}","branches_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/branches{/branch}","tags_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/tags","blobs_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/git/refs{/sha}","trees_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/statuses/{sha}","languages_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/languages","stargazers_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/stargazers","contributors_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/contributors","subscribers_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/subscribers","subscription_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/subscription","commits_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/commits{/sha}","git_commits_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/git/commits{/sha}","comments_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/comments{/number}","issue_comment_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/issues/comments{/number}","contents_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/contents/{+path}","compare_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/merges","archive_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/downloads","issues_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/issues{/number}","pulls_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/pulls{/number}","milestones_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/milestones{/number}","notifications_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/labels{/name}","releases_url":"https://api.github.com/repos/tunnckoCore/github-add-collab/releases{/id}","created_at":"2015-03-15T15:49:03Z","updated_at":"2015-03-15T16:40:32Z","pushed_at":"2015-03-15T16:40:32Z","git_url":"git://github.com/tunnckoCore/github-add-collab.git","ssh_url":"git@github.com:tunnckoCore/github-add-collab.git","clone_url":"https://github.com/tunnckoCore/github-add-collab.git","svn_url":"https://github.com/tunnckoCore/github-add-collab","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"kevva:master","ref":"master","sha":"748875124145bd1a6c0af8ae9306cdb16e4d382b","user":{"login":"kevva","id":709159,"avatar_url":"https://avatars.githubusercontent.com/u/709159?v=3","gravatar_id":"","url":"https://api.github.com/users/kevva","html_url":"https://github.com/kevva","followers_url":"https://api.github.com/users/kevva/followers","following_url":"https://api.github.com/users/kevva/following{/other_user}","gists_url":"https://api.github.com/users/kevva/gists{/gist_id}","starred_url":"https://api.github.com/users/kevva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevva/subscriptions","organizations_url":"https://api.github.com/users/kevva/orgs","repos_url":"https://api.github.com/users/kevva/repos","events_url":"https://api.github.com/users/kevva/events{/privacy}","received_events_url":"https://api.github.com/users/kevva/received_events","type":"User","site_admin":false},"repo":{"id":32263892,"name":"github-add-collab","full_name":"kevva/github-add-collab","owner":{"login":"kevva","id":709159,"avatar_url":"https://avatars.githubusercontent.com/u/709159?v=3","gravatar_id":"","url":"https://api.github.com/users/kevva","html_url":"https://github.com/kevva","followers_url":"https://api.github.com/users/kevva/followers","following_url":"https://api.github.com/users/kevva/following{/other_user}","gists_url":"https://api.github.com/users/kevva/gists{/gist_id}","starred_url":"https://api.github.com/users/kevva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevva/subscriptions","organizations_url":"https://api.github.com/users/kevva/orgs","repos_url":"https://api.github.com/users/kevva/repos","events_url":"https://api.github.com/users/kevva/events{/privacy}","received_events_url":"https://api.github.com/users/kevva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevva/github-add-collab","description":"Add collaborators to Github repos","fork":false,"url":"https://api.github.com/repos/kevva/github-add-collab","forks_url":"https://api.github.com/repos/kevva/github-add-collab/forks","keys_url":"https://api.github.com/repos/kevva/github-add-collab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevva/github-add-collab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevva/github-add-collab/teams","hooks_url":"https://api.github.com/repos/kevva/github-add-collab/hooks","issue_events_url":"https://api.github.com/repos/kevva/github-add-collab/issues/events{/number}","events_url":"https://api.github.com/repos/kevva/github-add-collab/events","assignees_url":"https://api.github.com/repos/kevva/github-add-collab/assignees{/user}","branches_url":"https://api.github.com/repos/kevva/github-add-collab/branches{/branch}","tags_url":"https://api.github.com/repos/kevva/github-add-collab/tags","blobs_url":"https://api.github.com/repos/kevva/github-add-collab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevva/github-add-collab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevva/github-add-collab/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevva/github-add-collab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevva/github-add-collab/statuses/{sha}","languages_url":"https://api.github.com/repos/kevva/github-add-collab/languages","stargazers_url":"https://api.github.com/repos/kevva/github-add-collab/stargazers","contributors_url":"https://api.github.com/repos/kevva/github-add-collab/contributors","subscribers_url":"https://api.github.com/repos/kevva/github-add-collab/subscribers","subscription_url":"https://api.github.com/repos/kevva/github-add-collab/subscription","commits_url":"https://api.github.com/repos/kevva/github-add-collab/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevva/github-add-collab/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevva/github-add-collab/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevva/github-add-collab/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevva/github-add-collab/contents/{+path}","compare_url":"https://api.github.com/repos/kevva/github-add-collab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevva/github-add-collab/merges","archive_url":"https://api.github.com/repos/kevva/github-add-collab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevva/github-add-collab/downloads","issues_url":"https://api.github.com/repos/kevva/github-add-collab/issues{/number}","pulls_url":"https://api.github.com/repos/kevva/github-add-collab/pulls{/number}","milestones_url":"https://api.github.com/repos/kevva/github-add-collab/milestones{/number}","notifications_url":"https://api.github.com/repos/kevva/github-add-collab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevva/github-add-collab/labels{/name}","releases_url":"https://api.github.com/repos/kevva/github-add-collab/releases{/id}","created_at":"2015-03-15T14:14:23Z","updated_at":"2015-03-15T15:34:45Z","pushed_at":"2015-03-15T14:16:59Z","git_url":"git://github.com/kevva/github-add-collab.git","ssh_url":"git@github.com:kevva/github-add-collab.git","clone_url":"https://github.com/kevva/github-add-collab.git","svn_url":"https://github.com/kevva/github-add-collab","homepage":null,"size":0,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kevva/github-add-collab/pulls/1"},"html":{"href":"https://github.com/kevva/github-add-collab/pull/1"},"issue":{"href":"https://api.github.com/repos/kevva/github-add-collab/issues/1"},"comments":{"href":"https://api.github.com/repos/kevva/github-add-collab/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/kevva/github-add-collab/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/kevva/github-add-collab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kevva/github-add-collab/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/kevva/github-add-collab/statuses/e4504fbda7c9e7215e897159d5740d68954eb9da"}}}}