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.
We probably want anAll
item on theAffiliation
enum.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
ToString
works nicely, since the names in the enum do not match to the names expected by the api a decision has to be made:Parameter
attribute (in which case we can drop theFlags