-
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
Invalid exception when add-collaborator return 201 #2558
Comments
Thanks for reporting this issue! Would you be open to creating a PR to fix it? We welcome all contributions ❤️ |
We will try to fix it. |
If you don't have time or if you run into any issues, let us know and we can try to pick this up on our side. I imagine this will end up being a breaking change as the return type will be different. |
This issue was originally posted in #2373, but the author had lost the confirmation of this problem somehow. I can try to create a pull request to fix it in a few hours. |
From docs (https://docs.github.com/en/rest/collaborators/collaborators#add-a-repository-collaborator):
But .Add method has
response.HttpResponse.IsTrue()
and fail on 201. Method should returnRepositoryInvitation
instead ofbool
and do not fail on 201.The text was updated successfully, but these errors were encountered: