-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add user as a collaborator with permission parameter #1101
Comments
Yeah, that looks like an oversight on our part. It think we should add an overload that accepts an enum with the available permission options. |
Want to submit a PR? |
LOLOLOL! No apologies necessary. You're usually correct. I happen to be taking a break to try and respond to all the OSS projects I maintain so the timing was lucky. |
Just a question on this out of interest...
Are you saying @haacked that this body parameter should actually be explicitly in the overloaded function, or should it be what appears to be the "usual" Octokit way where a Request object is passed in? Just trying to get a feel for the octokit.net conventions, most I had come across seem to use the request object approach, so was surprised to see you mention adding an overload directly taking the enum paramter (unless i misunderstood) Enum directly in Ad function
vs Using a request object
|
@ryangribble you're exactly right, it should be a request object. I was being lazy with my words. 😄 |
Sweet, my understanding remains intact 😁 |
Also note that as part of this GitHub API change, they indicated that the |
👍 |
This was implemented in #1410 but I will raise a new issue to cover this other comment:
|
Should we be able to set permissions when adding a collaborator to a repository?
The GitHub API supports it:
https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator
But Octokit.Net does not:
https://github.com/octokit/octokit.net/blob/master/Octokit%2FClients%2FIRepoCollaboratorsClient.cs#L44
The text was updated successfully, but these errors were encountered: