octokit.net
octokit.net copied to clipboard
RepoCollaboratorsClient.Add throws exception with 201 status code (Created)
Hello, looks like github changed the return code for adding collaborators
STRP:
- check "IsCollaborator"
- if false call "Add"
- observe exception
Using octokit 0.50.0
@nickfloyd this check is only performed when there is a CollaboratorRequest passed in. This appears to be organisation-owned/enterprise only. Unfortunately I don't have access to test this, do you? RepoCollaboratorsClient.Add methods.
@JonruAlveus Thanks for the heads up on this. I've added it to the board to put some 👀's on it soon to verify and fix.
Hi @marwie, could you confirm if this is still occurring? I can't now reproduce it. Thanks!