{"action":"created","comment":{"url":"https://api.github.com/repos/octokit/octokit.net/pulls/comments/69389977","id":69389977,"diff_hunk":"@@ -59,6 +59,16 @@ public interface IRepoCollaboratorsClient\n         Task Add(string owner, string repo, string user);\n \n         /// <summary>\n+        /// Invites a new collaborator to the repo\n+        /// </summary>\n+        /// <remarks>\n+        /// See the <a href=\"http://developer.github.com/v3/repos/collaborators/#add-collaborator\">API documentation</a> for more information.\n+        /// </remarks>\n+        /// <exception cref=\"ApiException\">Thrown when a general API error occurs.</exception>\n+        /// <returns><see cref=\"Task\"/></returns>\n+        Task<RepositoryInvitation> Invite(string owner, string repo, string user);","path":"Octokit/Clients/IRepoCollaboratorsClient.cs","position":11,"original_position":11,"commit_id":"e81dde8100c7aa1112c4eaf553b49d8f740dd107","original_commit_id":"e81dde8100c7aa1112c4eaf553b49d8f740dd107","user":{"login":"ryangribble","id":5425163,"avatar_url":"https://avatars.githubusercontent.com/u/5425163?v=3","gravatar_id":"","url":"https://api.github.com/users/ryangribble","html_url":"https://github.com/ryangribble","followers_url":"https://api.github.com/users/ryangribble/followers","following_url":"https://api.github.com/users/ryangribble/following{/other_user}","gists_url":"https://api.github.com/users/ryangribble/gists{/gist_id}","starred_url":"https://api.github.com/users/ryangribble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryangribble/subscriptions","organizations_url":"https://api.github.com/users/ryangribble/orgs","repos_url":"https://api.github.com/users/ryangribble/repos","events_url":"https://api.github.com/users/ryangribble/events{/privacy}","received_events_url":"https://api.github.com/users/ryangribble/received_events","type":"User","site_admin":false},"body":"According to the API docs, this function should actually take a request object stating the `permissions` for the user to  have.  This is missing from the `Add()` method which you would have copied for the `Invite()` method (an issue is raised for that but hasn't been fixed yet).  But we may as well at least include the `permissions` request on the `Invite()` method","created_at":"2016-07-03T11:39:50Z","updated_at":"2016-07-03T11:39:50Z","html_url":"https://github.com/octokit/octokit.net/pull/1410#discussion_r69389977","pull_request_url":"https://api.github.com/repos/octokit/octokit.net/pulls/1410","_links":{"self":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/comments/69389977"},"html":{"href":"https://github.com/octokit/octokit.net/pull/1410#discussion_r69389977"},"pull_request":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/1410"}}},"pull_request":{"url":"https://api.github.com/repos/octokit/octokit.net/pulls/1410","id":75940144,"html_url":"https://github.com/octokit/octokit.net/pull/1410","diff_url":"https://github.com/octokit/octokit.net/pull/1410.diff","patch_url":"https://github.com/octokit/octokit.net/pull/1410.patch","issue_url":"https://api.github.com/repos/octokit/octokit.net/issues/1410","number":1410,"state":"open","locked":false,"title":"Repository invitations changes","user":{"login":"maddin2016","id":19551763,"avatar_url":"https://avatars.githubusercontent.com/u/19551763?v=3","gravatar_id":"","url":"https://api.github.com/users/maddin2016","html_url":"https://github.com/maddin2016","followers_url":"https://api.github.com/users/maddin2016/followers","following_url":"https://api.github.com/users/maddin2016/following{/other_user}","gists_url":"https://api.github.com/users/maddin2016/gists{/gist_id}","starred_url":"https://api.github.com/users/maddin2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddin2016/subscriptions","organizations_url":"https://api.github.com/users/maddin2016/orgs","repos_url":"https://api.github.com/users/maddin2016/repos","events_url":"https://api.github.com/users/maddin2016/events{/privacy}","received_events_url":"https://api.github.com/users/maddin2016/received_events","type":"User","site_admin":false},"body":"fixed #1399 \r\n\r\nadd a new `RepositoryInvitationsClient` to invite a user to collaborate. I have to create some new overloads and classes. \r\n\r\nTodo\r\n- add unit and integration tests","created_at":"2016-07-01T07:49:34Z","updated_at":"2016-07-03T11:39:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01ab297a7bed8762dd88e90b17b5570287e7655c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/octokit/octokit.net/pulls/1410/commits","review_comments_url":"https://api.github.com/repos/octokit/octokit.net/pulls/1410/comments","review_comment_url":"https://api.github.com/repos/octokit/octokit.net/pulls/comments{/number}","comments_url":"https://api.github.com/repos/octokit/octokit.net/issues/1410/comments","statuses_url":"https://api.github.com/repos/octokit/octokit.net/statuses/e81dde8100c7aa1112c4eaf553b49d8f740dd107","head":{"label":"maddin2016:repository-invitations-changes","ref":"repository-invitations-changes","sha":"e81dde8100c7aa1112c4eaf553b49d8f740dd107","user":{"login":"maddin2016","id":19551763,"avatar_url":"https://avatars.githubusercontent.com/u/19551763?v=3","gravatar_id":"","url":"https://api.github.com/users/maddin2016","html_url":"https://github.com/maddin2016","followers_url":"https://api.github.com/users/maddin2016/followers","following_url":"https://api.github.com/users/maddin2016/following{/other_user}","gists_url":"https://api.github.com/users/maddin2016/gists{/gist_id}","starred_url":"https://api.github.com/users/maddin2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddin2016/subscriptions","organizations_url":"https://api.github.com/users/maddin2016/orgs","repos_url":"https://api.github.com/users/maddin2016/repos","events_url":"https://api.github.com/users/maddin2016/events{/privacy}","received_events_url":"https://api.github.com/users/maddin2016/received_events","type":"User","site_admin":false},"repo":{"id":59650191,"name":"octokit.net","full_name":"maddin2016/octokit.net","owner":{"login":"maddin2016","id":19551763,"avatar_url":"https://avatars.githubusercontent.com/u/19551763?v=3","gravatar_id":"","url":"https://api.github.com/users/maddin2016","html_url":"https://github.com/maddin2016","followers_url":"https://api.github.com/users/maddin2016/followers","following_url":"https://api.github.com/users/maddin2016/following{/other_user}","gists_url":"https://api.github.com/users/maddin2016/gists{/gist_id}","starred_url":"https://api.github.com/users/maddin2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddin2016/subscriptions","organizations_url":"https://api.github.com/users/maddin2016/orgs","repos_url":"https://api.github.com/users/maddin2016/repos","events_url":"https://api.github.com/users/maddin2016/events{/privacy}","received_events_url":"https://api.github.com/users/maddin2016/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maddin2016/octokit.net","description":"A GitHub API client library for .NET ","fork":true,"url":"https://api.github.com/repos/maddin2016/octokit.net","forks_url":"https://api.github.com/repos/maddin2016/octokit.net/forks","keys_url":"https://api.github.com/repos/maddin2016/octokit.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maddin2016/octokit.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maddin2016/octokit.net/teams","hooks_url":"https://api.github.com/repos/maddin2016/octokit.net/hooks","issue_events_url":"https://api.github.com/repos/maddin2016/octokit.net/issues/events{/number}","events_url":"https://api.github.com/repos/maddin2016/octokit.net/events","assignees_url":"https://api.github.com/repos/maddin2016/octokit.net/assignees{/user}","branches_url":"https://api.github.com/repos/maddin2016/octokit.net/branches{/branch}","tags_url":"https://api.github.com/repos/maddin2016/octokit.net/tags","blobs_url":"https://api.github.com/repos/maddin2016/octokit.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maddin2016/octokit.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maddin2016/octokit.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/maddin2016/octokit.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maddin2016/octokit.net/statuses/{sha}","languages_url":"https://api.github.com/repos/maddin2016/octokit.net/languages","stargazers_url":"https://api.github.com/repos/maddin2016/octokit.net/stargazers","contributors_url":"https://api.github.com/repos/maddin2016/octokit.net/contributors","subscribers_url":"https://api.github.com/repos/maddin2016/octokit.net/subscribers","subscription_url":"https://api.github.com/repos/maddin2016/octokit.net/subscription","commits_url":"https://api.github.com/repos/maddin2016/octokit.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/maddin2016/octokit.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/maddin2016/octokit.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/maddin2016/octokit.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/maddin2016/octokit.net/contents/{+path}","compare_url":"https://api.github.com/repos/maddin2016/octokit.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maddin2016/octokit.net/merges","archive_url":"https://api.github.com/repos/maddin2016/octokit.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maddin2016/octokit.net/downloads","issues_url":"https://api.github.com/repos/maddin2016/octokit.net/issues{/number}","pulls_url":"https://api.github.com/repos/maddin2016/octokit.net/pulls{/number}","milestones_url":"https://api.github.com/repos/maddin2016/octokit.net/milestones{/number}","notifications_url":"https://api.github.com/repos/maddin2016/octokit.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maddin2016/octokit.net/labels{/name}","releases_url":"https://api.github.com/repos/maddin2016/octokit.net/releases{/id}","deployments_url":"https://api.github.com/repos/maddin2016/octokit.net/deployments","created_at":"2016-05-25T09:31:26Z","updated_at":"2016-05-25T09:31:29Z","pushed_at":"2016-07-01T14:32:14Z","git_url":"git://github.com/maddin2016/octokit.net.git","ssh_url":"git@github.com:maddin2016/octokit.net.git","clone_url":"https://github.com/maddin2016/octokit.net.git","svn_url":"https://github.com/maddin2016/octokit.net","homepage":null,"size":84473,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"octokit:master","ref":"master","sha":"9cf39defc1562fbfe602f8f6a14c6b6e419ee46e","user":{"login":"octokit","id":3430433,"avatar_url":"https://avatars.githubusercontent.com/u/3430433?v=3","gravatar_id":"","url":"https://api.github.com/users/octokit","html_url":"https://github.com/octokit","followers_url":"https://api.github.com/users/octokit/followers","following_url":"https://api.github.com/users/octokit/following{/other_user}","gists_url":"https://api.github.com/users/octokit/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit/subscriptions","organizations_url":"https://api.github.com/users/octokit/orgs","repos_url":"https://api.github.com/users/octokit/repos","events_url":"https://api.github.com/users/octokit/events{/privacy}","received_events_url":"https://api.github.com/users/octokit/received_events","type":"Organization","site_admin":false},"repo":{"id":7528679,"name":"octokit.net","full_name":"octokit/octokit.net","owner":{"login":"octokit","id":3430433,"avatar_url":"https://avatars.githubusercontent.com/u/3430433?v=3","gravatar_id":"","url":"https://api.github.com/users/octokit","html_url":"https://github.com/octokit","followers_url":"https://api.github.com/users/octokit/followers","following_url":"https://api.github.com/users/octokit/following{/other_user}","gists_url":"https://api.github.com/users/octokit/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit/subscriptions","organizations_url":"https://api.github.com/users/octokit/orgs","repos_url":"https://api.github.com/users/octokit/repos","events_url":"https://api.github.com/users/octokit/events{/privacy}","received_events_url":"https://api.github.com/users/octokit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/octokit/octokit.net","description":"A GitHub API client library for .NET ","fork":false,"url":"https://api.github.com/repos/octokit/octokit.net","forks_url":"https://api.github.com/repos/octokit/octokit.net/forks","keys_url":"https://api.github.com/repos/octokit/octokit.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octokit/octokit.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octokit/octokit.net/teams","hooks_url":"https://api.github.com/repos/octokit/octokit.net/hooks","issue_events_url":"https://api.github.com/repos/octokit/octokit.net/issues/events{/number}","events_url":"https://api.github.com/repos/octokit/octokit.net/events","assignees_url":"https://api.github.com/repos/octokit/octokit.net/assignees{/user}","branches_url":"https://api.github.com/repos/octokit/octokit.net/branches{/branch}","tags_url":"https://api.github.com/repos/octokit/octokit.net/tags","blobs_url":"https://api.github.com/repos/octokit/octokit.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octokit/octokit.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octokit/octokit.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/octokit/octokit.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octokit/octokit.net/statuses/{sha}","languages_url":"https://api.github.com/repos/octokit/octokit.net/languages","stargazers_url":"https://api.github.com/repos/octokit/octokit.net/stargazers","contributors_url":"https://api.github.com/repos/octokit/octokit.net/contributors","subscribers_url":"https://api.github.com/repos/octokit/octokit.net/subscribers","subscription_url":"https://api.github.com/repos/octokit/octokit.net/subscription","commits_url":"https://api.github.com/repos/octokit/octokit.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/octokit/octokit.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/octokit/octokit.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/octokit/octokit.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/octokit/octokit.net/contents/{+path}","compare_url":"https://api.github.com/repos/octokit/octokit.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octokit/octokit.net/merges","archive_url":"https://api.github.com/repos/octokit/octokit.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octokit/octokit.net/downloads","issues_url":"https://api.github.com/repos/octokit/octokit.net/issues{/number}","pulls_url":"https://api.github.com/repos/octokit/octokit.net/pulls{/number}","milestones_url":"https://api.github.com/repos/octokit/octokit.net/milestones{/number}","notifications_url":"https://api.github.com/repos/octokit/octokit.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octokit/octokit.net/labels{/name}","releases_url":"https://api.github.com/repos/octokit/octokit.net/releases{/id}","deployments_url":"https://api.github.com/repos/octokit/octokit.net/deployments","created_at":"2013-01-09T20:48:45Z","updated_at":"2016-07-02T16:13:34Z","pushed_at":"2016-07-01T14:32:15Z","git_url":"git://github.com/octokit/octokit.net.git","ssh_url":"git@github.com:octokit/octokit.net.git","clone_url":"https://github.com/octokit/octokit.net.git","svn_url":"https://github.com/octokit/octokit.net","homepage":null,"size":92084,"stargazers_count":988,"watchers_count":988,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":500,"mirror_url":null,"open_issues_count":131,"forks":500,"open_issues":131,"watchers":988,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/1410"},"html":{"href":"https://github.com/octokit/octokit.net/pull/1410"},"issue":{"href":"https://api.github.com/repos/octokit/octokit.net/issues/1410"},"comments":{"href":"https://api.github.com/repos/octokit/octokit.net/issues/1410/comments"},"review_comments":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/1410/comments"},"review_comment":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/1410/commits"},"statuses":{"href":"https://api.github.com/repos/octokit/octokit.net/statuses/e81dde8100c7aa1112c4eaf553b49d8f740dd107"}}}}
{"actor":{"display_login":"ryangribble"}}