As per the API documentation the RepositoryRequest class is missing some options.
The options missing are visibility and affiliation.
Read this to get setup for contributing
Steps to implement:
-
Add the following
enums -
Visibility:
- Public
- Private
- All
-
Affiliation: Some of the
Affiliationenum members have to be decorated with theParameterattribute so they are serialized properly- Owner
- Collaborator
- OrganizationMember:
[Parameter(Value = "organization_member")] - OwnerAndCollaborator:
[Parameter(Value = "owner, collaborator")] - OwnerAndOrganizationMember:
[Parameter(Value = "owner, organization_member")] - CollaboratorAndOrganizationMember:
[Parameter(Value = "collaborator, organization_member")] - All:
[Parameter(Value = "owner, collaborator, organization_member")]
-
Add proprties to the
RepositoryRequestclass.
It's only three values so it shouldnt be a problem. I'll update the gist and ping you so you can update the issue back on the repo