We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
Is the following API supported?
Also does collaborator just imply a user that has write access?
I looked at the code but i'm not seeing it in the GHRepository.java file. Wanted to verify if I was just not seeing it?
The text was updated successfully, but these errors were encountered:
Not for a single user, but you can get a list and go from there.
Collaborator is distinct from write access and differs depending on the type of repository:
User repo: https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository#collaborator-access-on-a-repository-owned-by-a-user-account
Organization repo: https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/adding-outside-collaborators-to-repositories-in-your-organization
Sorry, something went wrong.
I came across a need for this behavior, i.e., checking if a single user was already a Collaborator on a Repository, so I don't have to fetch the entire list each time (or deal with caching it).
It seems fairly straightforward to implement, as the API returns either a 204 (user is a collaborator) or 404 (they're not), and is similar to the hasAssignee code.
I can submit a pull request to implement this if desired.
Merge pull request #1431 from 0xacx/Issue-576-collaborator-by-username
Fix Issue #576 collaborator by username
Successfully merging a pull request may close this issue.