{"action":"created","comment":{"url":"https://api.github.com/repos/pksunkara/octonode/pulls/comments/31600335","id":31600335,"diff_hunk":"@@ -87,6 +87,25 @@ class Org\n       return cb(err) if err\n       cb null, s is 204, h\n \n+  # Publicize the authenticated user's membership in an organization.\n+  # '/orgs/flatiron/public_members/pksunkara' PUT\n+  publicizeMembership: (user, cb) ->\n+    @client.put \"/orgs/#{@name}/public_members/#{user}\", null, (err, s, b, h) ->\n+      return cb(err)  if err\n+      if s isnt 204 then cb new Error(\"Org publicizeMembership error\") else cb null, b, h\n+\n+  # Conceal public membership of the authenticated user in the organization.\n+  # '/orgs/flatiron/public_members/pksunkara' DELETE\n+  concealMembership: (user, cb) ->\n+    @client.del \"/orgs/#{@name}/public_members/#{user}\", null, (err, s, b, h) ->\n+      if s isnt 204 then cb(new Error(\"Org concealMembership error\")) else cb null, b, h\n+\n+  # Remove a user from an organization and all of its teams\n+  # '/orgs/flatiron/members/pksunkara' DELETE\n+  removeMember: (user, cb) ->\n+    @client.del \"/orgs/#{@name}/members/#{user}\", null, (err, s, b, h) ->\n+      if s isnt 204 then cb(new Error(\"Org removeMember error\")) else cb null, b, h","path":"src/octonode/org.coffee","position":21,"original_position":21,"commit_id":"bb80bb5740369170e03d8c02e071da861adb40ec","original_commit_id":"bb80bb5740369170e03d8c02e071da861adb40ec","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":"Please add `return cb(err) if err` before this line.","created_at":"2015-06-03T07:46:53Z","updated_at":"2015-06-03T07:46:53Z","html_url":"https://github.com/pksunkara/octonode/pull/180#discussion_r31600335","pull_request_url":"https://api.github.com/repos/pksunkara/octonode/pulls/180","_links":{"self":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/comments/31600335"},"html":{"href":"https://github.com/pksunkara/octonode/pull/180#discussion_r31600335"},"pull_request":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/180"}}},"pull_request":{"url":"https://api.github.com/repos/pksunkara/octonode/pulls/180","id":35441017,"html_url":"https://github.com/pksunkara/octonode/pull/180","diff_url":"https://github.com/pksunkara/octonode/pull/180.diff","patch_url":"https://github.com/pksunkara/octonode/pull/180.patch","issue_url":"https://api.github.com/repos/pksunkara/octonode/issues/180","number":180,"state":"open","locked":false,"title":"Implementing additional GitHub APIs","user":{"login":"jeffwilcox","id":427913,"avatar_url":"https://avatars.githubusercontent.com/u/427913?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffwilcox","html_url":"https://github.com/jeffwilcox","followers_url":"https://api.github.com/users/jeffwilcox/followers","following_url":"https://api.github.com/users/jeffwilcox/following{/other_user}","gists_url":"https://api.github.com/users/jeffwilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffwilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffwilcox/subscriptions","organizations_url":"https://api.github.com/users/jeffwilcox/orgs","repos_url":"https://api.github.com/users/jeffwilcox/repos","events_url":"https://api.github.com/users/jeffwilcox/events{/privacy}","received_events_url":"https://api.github.com/users/jeffwilcox/received_events","type":"User","site_admin":false},"body":"Hi,\r\nThis PR contains a number of additional GitHub V3 API calls that I implemented back in February and March. Given the units of work are independent and represent different API calls, I have no squashed many commits together. Happy to change that if you prefer.\r\n\r\nAPIs implemented include:\r\n\r\n- Issue APIs:     \r\n  - Creating a comment\r\n  - Updating a comment\r\n  - Deleting a comment\r\n- \"Me\" API:\r\n  - Listing the authenticated user's team memberships\r\n- Organization APIs:\r\n  - Publicizing a user's org membership   \r\n  - Concealing a user's org membership\r\n  - Removing a member from an organization\r\n- Team APIs:\r\n  - Updating a team \r\n  - Checking for the membership of a user in a team\r\n  - Adding team membership           \r\n  - Removing team membership\r\n\r\nThanks,\r\nJeff","created_at":"2015-05-14T17:10:36Z","updated_at":"2015-06-03T07:46:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"541bf51d7af4c2dd764f32bbad84bd1714c5b8d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pksunkara/octonode/pulls/180/commits","review_comments_url":"https://api.github.com/repos/pksunkara/octonode/pulls/180/comments","review_comment_url":"https://api.github.com/repos/pksunkara/octonode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pksunkara/octonode/issues/180/comments","statuses_url":"https://api.github.com/repos/pksunkara/octonode/statuses/bb80bb5740369170e03d8c02e071da861adb40ec","head":{"label":"jeffwilcox:master","ref":"master","sha":"bb80bb5740369170e03d8c02e071da861adb40ec","user":{"login":"jeffwilcox","id":427913,"avatar_url":"https://avatars.githubusercontent.com/u/427913?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffwilcox","html_url":"https://github.com/jeffwilcox","followers_url":"https://api.github.com/users/jeffwilcox/followers","following_url":"https://api.github.com/users/jeffwilcox/following{/other_user}","gists_url":"https://api.github.com/users/jeffwilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffwilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffwilcox/subscriptions","organizations_url":"https://api.github.com/users/jeffwilcox/orgs","repos_url":"https://api.github.com/users/jeffwilcox/repos","events_url":"https://api.github.com/users/jeffwilcox/events{/privacy}","received_events_url":"https://api.github.com/users/jeffwilcox/received_events","type":"User","site_admin":false},"repo":{"id":31352809,"name":"octonode","full_name":"jeffwilcox/octonode","owner":{"login":"jeffwilcox","id":427913,"avatar_url":"https://avatars.githubusercontent.com/u/427913?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffwilcox","html_url":"https://github.com/jeffwilcox","followers_url":"https://api.github.com/users/jeffwilcox/followers","following_url":"https://api.github.com/users/jeffwilcox/following{/other_user}","gists_url":"https://api.github.com/users/jeffwilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffwilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffwilcox/subscriptions","organizations_url":"https://api.github.com/users/jeffwilcox/orgs","repos_url":"https://api.github.com/users/jeffwilcox/repos","events_url":"https://api.github.com/users/jeffwilcox/events{/privacy}","received_events_url":"https://api.github.com/users/jeffwilcox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffwilcox/octonode","description":"github api v3 in nodejs","fork":true,"url":"https://api.github.com/repos/jeffwilcox/octonode","forks_url":"https://api.github.com/repos/jeffwilcox/octonode/forks","keys_url":"https://api.github.com/repos/jeffwilcox/octonode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffwilcox/octonode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffwilcox/octonode/teams","hooks_url":"https://api.github.com/repos/jeffwilcox/octonode/hooks","issue_events_url":"https://api.github.com/repos/jeffwilcox/octonode/issues/events{/number}","events_url":"https://api.github.com/repos/jeffwilcox/octonode/events","assignees_url":"https://api.github.com/repos/jeffwilcox/octonode/assignees{/user}","branches_url":"https://api.github.com/repos/jeffwilcox/octonode/branches{/branch}","tags_url":"https://api.github.com/repos/jeffwilcox/octonode/tags","blobs_url":"https://api.github.com/repos/jeffwilcox/octonode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffwilcox/octonode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffwilcox/octonode/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffwilcox/octonode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffwilcox/octonode/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffwilcox/octonode/languages","stargazers_url":"https://api.github.com/repos/jeffwilcox/octonode/stargazers","contributors_url":"https://api.github.com/repos/jeffwilcox/octonode/contributors","subscribers_url":"https://api.github.com/repos/jeffwilcox/octonode/subscribers","subscription_url":"https://api.github.com/repos/jeffwilcox/octonode/subscription","commits_url":"https://api.github.com/repos/jeffwilcox/octonode/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffwilcox/octonode/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffwilcox/octonode/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffwilcox/octonode/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffwilcox/octonode/contents/{+path}","compare_url":"https://api.github.com/repos/jeffwilcox/octonode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffwilcox/octonode/merges","archive_url":"https://api.github.com/repos/jeffwilcox/octonode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffwilcox/octonode/downloads","issues_url":"https://api.github.com/repos/jeffwilcox/octonode/issues{/number}","pulls_url":"https://api.github.com/repos/jeffwilcox/octonode/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffwilcox/octonode/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffwilcox/octonode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffwilcox/octonode/labels{/name}","releases_url":"https://api.github.com/repos/jeffwilcox/octonode/releases{/id}","created_at":"2015-02-26T05:54:56Z","updated_at":"2015-04-01T17:05:22Z","pushed_at":"2015-06-02T18:50:27Z","git_url":"git://github.com/jeffwilcox/octonode.git","ssh_url":"git@github.com:jeffwilcox/octonode.git","clone_url":"https://github.com/jeffwilcox/octonode.git","svn_url":"https://github.com/jeffwilcox/octonode","homepage":"","size":604,"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":"021869e79b9dbf974aaf66a7de121d7f7baafe1d","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-06-01T07:46:33Z","pushed_at":"2015-06-02T18:50:28Z","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":1415,"stargazers_count":458,"watchers_count":458,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":12,"forks":115,"open_issues":12,"watchers":458,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/180"},"html":{"href":"https://github.com/pksunkara/octonode/pull/180"},"issue":{"href":"https://api.github.com/repos/pksunkara/octonode/issues/180"},"comments":{"href":"https://api.github.com/repos/pksunkara/octonode/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pksunkara/octonode/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/pksunkara/octonode/statuses/bb80bb5740369170e03d8c02e071da861adb40ec"}}}}