{"action":"created","comment":{"url":"https://api.github.com/repos/google/go-github/pulls/comments/93899495","pull_request_review_id":14430543,"id":93899495,"diff_hunk":"@@ -377,3 +393,28 @@ func (s *OrganizationsService) RemoveTeamMembership(team int, user string) (*Res\n \n \treturn s.client.Do(req, nil)\n }\n+\n+// ListPendingTeamInvitations get pending invitaion list in team.\n+// Warning: The API may change without advance notice during the preview period.\n+// Preview features are not supported for production use.\n+//\n+// GitHub API docs: https://developer.github.com/v3/orgs/teams/#list-pending-team-invitations\n+func (s *OrganizationsService) ListPendingTeamInvitations(team int, opt *ListOptions) ([]*Invitation, *Response, error) {\n+\tu := fmt.Sprintf(\"teams/%v/invitations\", team)\n+\tu, err := addOptions(u, opt)","path":"github/orgs_teams.go","position":48,"original_position":48,"commit_id":"39fcd94ff82406df1bb7bb2970cc4c1ff21f29b6","original_commit_id":"39fcd94ff82406df1bb7bb2970cc4c1ff21f29b6","user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"body":"You're forgetting an error check here, after `addOptions`.\r\n\r\n```Go\r\nu, err := addOptions(u, opt)\r\nif err != nil {\r\n\treturn nil, nil, err\r\n}\r\n```","created_at":"2016-12-27T06:16:10Z","updated_at":"2016-12-27T06:18:11Z","html_url":"https://github.com/google/go-github/pull/504#discussion_r93899495","pull_request_url":"https://api.github.com/repos/google/go-github/pulls/504","_links":{"self":{"href":"https://api.github.com/repos/google/go-github/pulls/comments/93899495"},"html":{"href":"https://github.com/google/go-github/pull/504#discussion_r93899495"},"pull_request":{"href":"https://api.github.com/repos/google/go-github/pulls/504"}}},"pull_request":{"url":"https://api.github.com/repos/google/go-github/pulls/504","id":99406220,"html_url":"https://github.com/google/go-github/pull/504","diff_url":"https://github.com/google/go-github/pull/504.diff","patch_url":"https://github.com/google/go-github/pull/504.patch","issue_url":"https://api.github.com/repos/google/go-github/issues/504","number":504,"state":"open","locked":false,"title":"Add get pending invitation API and OrganizationEvent type structure","user":{"login":"kucuny","id":197491,"avatar_url":"https://avatars.githubusercontent.com/u/197491?v=3","gravatar_id":"","url":"https://api.github.com/users/kucuny","html_url":"https://github.com/kucuny","followers_url":"https://api.github.com/users/kucuny/followers","following_url":"https://api.github.com/users/kucuny/following{/other_user}","gists_url":"https://api.github.com/users/kucuny/gists{/gist_id}","starred_url":"https://api.github.com/users/kucuny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kucuny/subscriptions","organizations_url":"https://api.github.com/users/kucuny/orgs","repos_url":"https://api.github.com/users/kucuny/repos","events_url":"https://api.github.com/users/kucuny/events{/privacy}","received_events_url":"https://api.github.com/users/kucuny/received_events","type":"User","site_admin":false},"body":"I added team pending invitation API and OrganizationEvent type structures.\r\n\r\nTeam pending invitation API : https://developer.github.com/v3/orgs/teams/#list-pending-team-invitations\r\n\r\nOrganization Event Type : https://developer.github.com/v3/activity/events/types/#organizationevent","created_at":"2016-12-27T05:13:00Z","updated_at":"2016-12-27T06:18:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"562401ae797f3d64e2e4ac5c76e93420cade0eb9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/go-github/pulls/504/commits","review_comments_url":"https://api.github.com/repos/google/go-github/pulls/504/comments","review_comment_url":"https://api.github.com/repos/google/go-github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/go-github/issues/504/comments","statuses_url":"https://api.github.com/repos/google/go-github/statuses/39fcd94ff82406df1bb7bb2970cc4c1ff21f29b6","head":{"label":"kucuny:organization-events","ref":"organization-events","sha":"39fcd94ff82406df1bb7bb2970cc4c1ff21f29b6","user":{"login":"kucuny","id":197491,"avatar_url":"https://avatars.githubusercontent.com/u/197491?v=3","gravatar_id":"","url":"https://api.github.com/users/kucuny","html_url":"https://github.com/kucuny","followers_url":"https://api.github.com/users/kucuny/followers","following_url":"https://api.github.com/users/kucuny/following{/other_user}","gists_url":"https://api.github.com/users/kucuny/gists{/gist_id}","starred_url":"https://api.github.com/users/kucuny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kucuny/subscriptions","organizations_url":"https://api.github.com/users/kucuny/orgs","repos_url":"https://api.github.com/users/kucuny/repos","events_url":"https://api.github.com/users/kucuny/events{/privacy}","received_events_url":"https://api.github.com/users/kucuny/received_events","type":"User","site_admin":false},"repo":{"id":77033566,"name":"go-github","full_name":"kucuny/go-github","owner":{"login":"kucuny","id":197491,"avatar_url":"https://avatars.githubusercontent.com/u/197491?v=3","gravatar_id":"","url":"https://api.github.com/users/kucuny","html_url":"https://github.com/kucuny","followers_url":"https://api.github.com/users/kucuny/followers","following_url":"https://api.github.com/users/kucuny/following{/other_user}","gists_url":"https://api.github.com/users/kucuny/gists{/gist_id}","starred_url":"https://api.github.com/users/kucuny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kucuny/subscriptions","organizations_url":"https://api.github.com/users/kucuny/orgs","repos_url":"https://api.github.com/users/kucuny/repos","events_url":"https://api.github.com/users/kucuny/events{/privacy}","received_events_url":"https://api.github.com/users/kucuny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kucuny/go-github","description":"Go library for accessing the GitHub API","fork":true,"url":"https://api.github.com/repos/kucuny/go-github","forks_url":"https://api.github.com/repos/kucuny/go-github/forks","keys_url":"https://api.github.com/repos/kucuny/go-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kucuny/go-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kucuny/go-github/teams","hooks_url":"https://api.github.com/repos/kucuny/go-github/hooks","issue_events_url":"https://api.github.com/repos/kucuny/go-github/issues/events{/number}","events_url":"https://api.github.com/repos/kucuny/go-github/events","assignees_url":"https://api.github.com/repos/kucuny/go-github/assignees{/user}","branches_url":"https://api.github.com/repos/kucuny/go-github/branches{/branch}","tags_url":"https://api.github.com/repos/kucuny/go-github/tags","blobs_url":"https://api.github.com/repos/kucuny/go-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kucuny/go-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kucuny/go-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/kucuny/go-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kucuny/go-github/statuses/{sha}","languages_url":"https://api.github.com/repos/kucuny/go-github/languages","stargazers_url":"https://api.github.com/repos/kucuny/go-github/stargazers","contributors_url":"https://api.github.com/repos/kucuny/go-github/contributors","subscribers_url":"https://api.github.com/repos/kucuny/go-github/subscribers","subscription_url":"https://api.github.com/repos/kucuny/go-github/subscription","commits_url":"https://api.github.com/repos/kucuny/go-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/kucuny/go-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/kucuny/go-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/kucuny/go-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/kucuny/go-github/contents/{+path}","compare_url":"https://api.github.com/repos/kucuny/go-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kucuny/go-github/merges","archive_url":"https://api.github.com/repos/kucuny/go-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kucuny/go-github/downloads","issues_url":"https://api.github.com/repos/kucuny/go-github/issues{/number}","pulls_url":"https://api.github.com/repos/kucuny/go-github/pulls{/number}","milestones_url":"https://api.github.com/repos/kucuny/go-github/milestones{/number}","notifications_url":"https://api.github.com/repos/kucuny/go-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kucuny/go-github/labels{/name}","releases_url":"https://api.github.com/repos/kucuny/go-github/releases{/id}","deployments_url":"https://api.github.com/repos/kucuny/go-github/deployments","created_at":"2016-12-21T08:37:59Z","updated_at":"2016-12-21T08:38:02Z","pushed_at":"2016-12-27T05:07:52Z","git_url":"git://github.com/kucuny/go-github.git","ssh_url":"git@github.com:kucuny/go-github.git","clone_url":"https://github.com/kucuny/go-github.git","svn_url":"https://github.com/kucuny/go-github","homepage":"http://godoc.org/github.com/google/go-github/github","size":1182,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"google:master","ref":"master","sha":"b272bb85ab53b610b5660988998feb0e0294bd2b","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":10270722,"name":"go-github","full_name":"google/go-github","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/go-github","description":"Go library for accessing the GitHub API","fork":false,"url":"https://api.github.com/repos/google/go-github","forks_url":"https://api.github.com/repos/google/go-github/forks","keys_url":"https://api.github.com/repos/google/go-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/go-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/go-github/teams","hooks_url":"https://api.github.com/repos/google/go-github/hooks","issue_events_url":"https://api.github.com/repos/google/go-github/issues/events{/number}","events_url":"https://api.github.com/repos/google/go-github/events","assignees_url":"https://api.github.com/repos/google/go-github/assignees{/user}","branches_url":"https://api.github.com/repos/google/go-github/branches{/branch}","tags_url":"https://api.github.com/repos/google/go-github/tags","blobs_url":"https://api.github.com/repos/google/go-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/go-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/go-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/go-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/go-github/statuses/{sha}","languages_url":"https://api.github.com/repos/google/go-github/languages","stargazers_url":"https://api.github.com/repos/google/go-github/stargazers","contributors_url":"https://api.github.com/repos/google/go-github/contributors","subscribers_url":"https://api.github.com/repos/google/go-github/subscribers","subscription_url":"https://api.github.com/repos/google/go-github/subscription","commits_url":"https://api.github.com/repos/google/go-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/go-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/go-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/go-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/go-github/contents/{+path}","compare_url":"https://api.github.com/repos/google/go-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/go-github/merges","archive_url":"https://api.github.com/repos/google/go-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/go-github/downloads","issues_url":"https://api.github.com/repos/google/go-github/issues{/number}","pulls_url":"https://api.github.com/repos/google/go-github/pulls{/number}","milestones_url":"https://api.github.com/repos/google/go-github/milestones{/number}","notifications_url":"https://api.github.com/repos/google/go-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/go-github/labels{/name}","releases_url":"https://api.github.com/repos/google/go-github/releases{/id}","deployments_url":"https://api.github.com/repos/google/go-github/deployments","created_at":"2013-05-24T16:42:58Z","updated_at":"2016-12-27T03:39:58Z","pushed_at":"2016-12-27T05:13:02Z","git_url":"git://github.com/google/go-github.git","ssh_url":"git@github.com:google/go-github.git","clone_url":"https://github.com/google/go-github.git","svn_url":"https://github.com/google/go-github","homepage":"http://godoc.org/github.com/google/go-github/github","size":1203,"stargazers_count":2133,"watchers_count":2133,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":479,"mirror_url":null,"open_issues_count":27,"forks":479,"open_issues":27,"watchers":2133,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/go-github/pulls/504"},"html":{"href":"https://github.com/google/go-github/pull/504"},"issue":{"href":"https://api.github.com/repos/google/go-github/issues/504"},"comments":{"href":"https://api.github.com/repos/google/go-github/issues/504/comments"},"review_comments":{"href":"https://api.github.com/repos/google/go-github/pulls/504/comments"},"review_comment":{"href":"https://api.github.com/repos/google/go-github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/go-github/pulls/504/commits"},"statuses":{"href":"https://api.github.com/repos/google/go-github/statuses/39fcd94ff82406df1bb7bb2970cc4c1ff21f29b6"}}}}
{"actor":{"display_login":"shurcooL"}}