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
enum
s -
Visibility:
- Public
- Private
- All
-
Affiliation: Some of the
Affiliation
enum members have to be decorated with theParameter
attribute 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
RepositoryRequest
class.
@M-Zuber
I like this option, as it feels like other places in the code. Do you think there'll be an issue with doing this here?