{"action":"created","comment":{"url":"https://api.github.com/repos/pksunkara/octonode/pulls/comments/39380088","id":39380088,"diff_hunk":"@@ -85,6 +85,13 @@ class Team\n       return cb(err) if err\n       if s isnt 200 then cb(new Error(\"Team repos error\")) else cb null, b, h\n \n+  # Remove repo from a team\n+  # '/teams/37/repos/flatiron/hub' DELETE\n+  removeRepo: (user, team, cb) ->\n+    @client.del \"/teams/#{@id}/repos/#{user}/#{team}\", {}, (err, s, b, h) ->\n+      return cb(err) if err\n+      if s isnt 204 then cb(new Error(\"Team removeMembership error\")) else cb null, b, h","path":"src/octonode/team.coffee","position":9,"original_position":9,"commit_id":"296e3879c31a74220978347d56d8a0bf37aa481d","original_commit_id":"296e3879c31a74220978347d56d8a0bf37aa481d","user":{"login":"pksunkara","id":174703,"avatar_url":"https://avatars.githubusercontent.com/u/174703?v=3","gravatar_id":"","url":"https://api.github.com/users/pksunkara","html_url":"https://github.com/pksunkara","followers_url":"https://api.github.com/users/pksunkara/followers","following_url":"https://api.github.com/users/pksunkara/following{/other_user}","gists_url":"https://api.github.com/users/pksunkara/gists{/gist_id}","starred_url":"https://api.github.com/users/pksunkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pksunkara/subscriptions","organizations_url":"https://api.github.com/users/pksunkara/orgs","repos_url":"https://api.github.com/users/pksunkara/repos","events_url":"https://api.github.com/users/pksunkara/events{/privacy}","received_events_url":"https://api.github.com/users/pksunkara/received_events","type":"User","site_admin":false},"body":"`\"Team removeRepo error\"`","created_at":"2015-09-14T10:34:32Z","updated_at":"2015-09-14T10:34:32Z","html_url":"https://github.com/pksunkara/octonode/pull/200#discussion_r39380088","pull_request_url":"https://api.github.com/repos/pksunkara/octonode/pulls/200","_links":{"self":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/comments/39380088"},"html":{"href":"https://github.com/pksunkara/octonode/pull/200#discussion_r39380088"},"pull_request":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/200"}}},"pull_request":{"url":"https://api.github.com/repos/pksunkara/octonode/pulls/200","id":44914627,"html_url":"https://github.com/pksunkara/octonode/pull/200","diff_url":"https://github.com/pksunkara/octonode/pull/200.diff","patch_url":"https://github.com/pksunkara/octonode/pull/200.patch","issue_url":"https://api.github.com/repos/pksunkara/octonode/issues/200","number":200,"state":"open","locked":false,"title":"Added teams/removeRepo function","user":{"login":"dhinus","id":474311,"avatar_url":"https://avatars.githubusercontent.com/u/474311?v=3","gravatar_id":"","url":"https://api.github.com/users/dhinus","html_url":"https://github.com/dhinus","followers_url":"https://api.github.com/users/dhinus/followers","following_url":"https://api.github.com/users/dhinus/following{/other_user}","gists_url":"https://api.github.com/users/dhinus/gists{/gist_id}","starred_url":"https://api.github.com/users/dhinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhinus/subscriptions","organizations_url":"https://api.github.com/users/dhinus/orgs","repos_url":"https://api.github.com/users/dhinus/repos","events_url":"https://api.github.com/users/dhinus/events{/privacy}","received_events_url":"https://api.github.com/users/dhinus/received_events","type":"User","site_admin":false},"body":"As documented at https://developer.github.com/v3/orgs/teams/#remove-team-member\r\n\r\nNote that \"user\" can be both a standard user or an org.","created_at":"2015-09-14T10:31:13Z","updated_at":"2015-09-14T10:34:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd90f3388bc1d4468f137e9a6d6b942fee56f97e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pksunkara/octonode/pulls/200/commits","review_comments_url":"https://api.github.com/repos/pksunkara/octonode/pulls/200/comments","review_comment_url":"https://api.github.com/repos/pksunkara/octonode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pksunkara/octonode/issues/200/comments","statuses_url":"https://api.github.com/repos/pksunkara/octonode/statuses/296e3879c31a74220978347d56d8a0bf37aa481d","head":{"label":"dhinus:teams-removerepo","ref":"teams-removerepo","sha":"296e3879c31a74220978347d56d8a0bf37aa481d","user":{"login":"dhinus","id":474311,"avatar_url":"https://avatars.githubusercontent.com/u/474311?v=3","gravatar_id":"","url":"https://api.github.com/users/dhinus","html_url":"https://github.com/dhinus","followers_url":"https://api.github.com/users/dhinus/followers","following_url":"https://api.github.com/users/dhinus/following{/other_user}","gists_url":"https://api.github.com/users/dhinus/gists{/gist_id}","starred_url":"https://api.github.com/users/dhinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhinus/subscriptions","organizations_url":"https://api.github.com/users/dhinus/orgs","repos_url":"https://api.github.com/users/dhinus/repos","events_url":"https://api.github.com/users/dhinus/events{/privacy}","received_events_url":"https://api.github.com/users/dhinus/received_events","type":"User","site_admin":false},"repo":{"id":42442360,"name":"octonode","full_name":"dhinus/octonode","owner":{"login":"dhinus","id":474311,"avatar_url":"https://avatars.githubusercontent.com/u/474311?v=3","gravatar_id":"","url":"https://api.github.com/users/dhinus","html_url":"https://github.com/dhinus","followers_url":"https://api.github.com/users/dhinus/followers","following_url":"https://api.github.com/users/dhinus/following{/other_user}","gists_url":"https://api.github.com/users/dhinus/gists{/gist_id}","starred_url":"https://api.github.com/users/dhinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhinus/subscriptions","organizations_url":"https://api.github.com/users/dhinus/orgs","repos_url":"https://api.github.com/users/dhinus/repos","events_url":"https://api.github.com/users/dhinus/events{/privacy}","received_events_url":"https://api.github.com/users/dhinus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dhinus/octonode","description":"github api v3 in nodejs","fork":true,"url":"https://api.github.com/repos/dhinus/octonode","forks_url":"https://api.github.com/repos/dhinus/octonode/forks","keys_url":"https://api.github.com/repos/dhinus/octonode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhinus/octonode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhinus/octonode/teams","hooks_url":"https://api.github.com/repos/dhinus/octonode/hooks","issue_events_url":"https://api.github.com/repos/dhinus/octonode/issues/events{/number}","events_url":"https://api.github.com/repos/dhinus/octonode/events","assignees_url":"https://api.github.com/repos/dhinus/octonode/assignees{/user}","branches_url":"https://api.github.com/repos/dhinus/octonode/branches{/branch}","tags_url":"https://api.github.com/repos/dhinus/octonode/tags","blobs_url":"https://api.github.com/repos/dhinus/octonode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhinus/octonode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhinus/octonode/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhinus/octonode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhinus/octonode/statuses/{sha}","languages_url":"https://api.github.com/repos/dhinus/octonode/languages","stargazers_url":"https://api.github.com/repos/dhinus/octonode/stargazers","contributors_url":"https://api.github.com/repos/dhinus/octonode/contributors","subscribers_url":"https://api.github.com/repos/dhinus/octonode/subscribers","subscription_url":"https://api.github.com/repos/dhinus/octonode/subscription","commits_url":"https://api.github.com/repos/dhinus/octonode/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhinus/octonode/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhinus/octonode/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhinus/octonode/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhinus/octonode/contents/{+path}","compare_url":"https://api.github.com/repos/dhinus/octonode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhinus/octonode/merges","archive_url":"https://api.github.com/repos/dhinus/octonode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhinus/octonode/downloads","issues_url":"https://api.github.com/repos/dhinus/octonode/issues{/number}","pulls_url":"https://api.github.com/repos/dhinus/octonode/pulls{/number}","milestones_url":"https://api.github.com/repos/dhinus/octonode/milestones{/number}","notifications_url":"https://api.github.com/repos/dhinus/octonode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhinus/octonode/labels{/name}","releases_url":"https://api.github.com/repos/dhinus/octonode/releases{/id}","created_at":"2015-09-14T10:30:45Z","updated_at":"2015-09-14T10:30:46Z","pushed_at":"2015-09-14T10:31:05Z","git_url":"git://github.com/dhinus/octonode.git","ssh_url":"git@github.com:dhinus/octonode.git","clone_url":"https://github.com/dhinus/octonode.git","svn_url":"https://github.com/dhinus/octonode","homepage":"","size":1372,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"pksunkara:master","ref":"master","sha":"153c612b9e0444177c12175144c5105983c445d5","user":{"login":"pksunkara","id":174703,"avatar_url":"https://avatars.githubusercontent.com/u/174703?v=3","gravatar_id":"","url":"https://api.github.com/users/pksunkara","html_url":"https://github.com/pksunkara","followers_url":"https://api.github.com/users/pksunkara/followers","following_url":"https://api.github.com/users/pksunkara/following{/other_user}","gists_url":"https://api.github.com/users/pksunkara/gists{/gist_id}","starred_url":"https://api.github.com/users/pksunkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pksunkara/subscriptions","organizations_url":"https://api.github.com/users/pksunkara/orgs","repos_url":"https://api.github.com/users/pksunkara/repos","events_url":"https://api.github.com/users/pksunkara/events{/privacy}","received_events_url":"https://api.github.com/users/pksunkara/received_events","type":"User","site_admin":false},"repo":{"id":2817060,"name":"octonode","full_name":"pksunkara/octonode","owner":{"login":"pksunkara","id":174703,"avatar_url":"https://avatars.githubusercontent.com/u/174703?v=3","gravatar_id":"","url":"https://api.github.com/users/pksunkara","html_url":"https://github.com/pksunkara","followers_url":"https://api.github.com/users/pksunkara/followers","following_url":"https://api.github.com/users/pksunkara/following{/other_user}","gists_url":"https://api.github.com/users/pksunkara/gists{/gist_id}","starred_url":"https://api.github.com/users/pksunkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pksunkara/subscriptions","organizations_url":"https://api.github.com/users/pksunkara/orgs","repos_url":"https://api.github.com/users/pksunkara/repos","events_url":"https://api.github.com/users/pksunkara/events{/privacy}","received_events_url":"https://api.github.com/users/pksunkara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pksunkara/octonode","description":"github api v3 in nodejs","fork":false,"url":"https://api.github.com/repos/pksunkara/octonode","forks_url":"https://api.github.com/repos/pksunkara/octonode/forks","keys_url":"https://api.github.com/repos/pksunkara/octonode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pksunkara/octonode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pksunkara/octonode/teams","hooks_url":"https://api.github.com/repos/pksunkara/octonode/hooks","issue_events_url":"https://api.github.com/repos/pksunkara/octonode/issues/events{/number}","events_url":"https://api.github.com/repos/pksunkara/octonode/events","assignees_url":"https://api.github.com/repos/pksunkara/octonode/assignees{/user}","branches_url":"https://api.github.com/repos/pksunkara/octonode/branches{/branch}","tags_url":"https://api.github.com/repos/pksunkara/octonode/tags","blobs_url":"https://api.github.com/repos/pksunkara/octonode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pksunkara/octonode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pksunkara/octonode/git/refs{/sha}","trees_url":"https://api.github.com/repos/pksunkara/octonode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pksunkara/octonode/statuses/{sha}","languages_url":"https://api.github.com/repos/pksunkara/octonode/languages","stargazers_url":"https://api.github.com/repos/pksunkara/octonode/stargazers","contributors_url":"https://api.github.com/repos/pksunkara/octonode/contributors","subscribers_url":"https://api.github.com/repos/pksunkara/octonode/subscribers","subscription_url":"https://api.github.com/repos/pksunkara/octonode/subscription","commits_url":"https://api.github.com/repos/pksunkara/octonode/commits{/sha}","git_commits_url":"https://api.github.com/repos/pksunkara/octonode/git/commits{/sha}","comments_url":"https://api.github.com/repos/pksunkara/octonode/comments{/number}","issue_comment_url":"https://api.github.com/repos/pksunkara/octonode/issues/comments{/number}","contents_url":"https://api.github.com/repos/pksunkara/octonode/contents/{+path}","compare_url":"https://api.github.com/repos/pksunkara/octonode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pksunkara/octonode/merges","archive_url":"https://api.github.com/repos/pksunkara/octonode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pksunkara/octonode/downloads","issues_url":"https://api.github.com/repos/pksunkara/octonode/issues{/number}","pulls_url":"https://api.github.com/repos/pksunkara/octonode/pulls{/number}","milestones_url":"https://api.github.com/repos/pksunkara/octonode/milestones{/number}","notifications_url":"https://api.github.com/repos/pksunkara/octonode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pksunkara/octonode/labels{/name}","releases_url":"https://api.github.com/repos/pksunkara/octonode/releases{/id}","created_at":"2011-11-21T02:13:13Z","updated_at":"2015-09-13T22:32:58Z","pushed_at":"2015-09-14T10:31:15Z","git_url":"git://github.com/pksunkara/octonode.git","ssh_url":"git@github.com:pksunkara/octonode.git","clone_url":"https://github.com/pksunkara/octonode.git","svn_url":"https://github.com/pksunkara/octonode","homepage":"","size":1372,"stargazers_count":507,"watchers_count":507,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":131,"mirror_url":null,"open_issues_count":17,"forks":131,"open_issues":17,"watchers":507,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/200"},"html":{"href":"https://github.com/pksunkara/octonode/pull/200"},"issue":{"href":"https://api.github.com/repos/pksunkara/octonode/issues/200"},"comments":{"href":"https://api.github.com/repos/pksunkara/octonode/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/pksunkara/octonode/statuses/296e3879c31a74220978347d56d8a0bf37aa481d"}}}}