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.
We probably want anAllitem on theAffiliationenum.I am double checking how the ToString will look if just bitwise is used.Even though as long as the values start from 1, the
ToStringworks nicely, since the names in the enum do not match to the names expected by the api a decision has to be made:Parameterattribute (in which case we can drop theFlags