Skip to content

Instantly share code, notes, and snippets.

@M-Zuber
Last active February 5, 2016 05:29
Show Gist options
  • Save M-Zuber/6c49f6ad1a77980cfec5 to your computer and use it in GitHub Desktop.
Save M-Zuber/6c49f6ad1a77980cfec5 to your computer and use it in GitHub Desktop.
first-timer issue for octokit.net

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 Affiliation enum members have to be decorated with the Parameter 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.

@shiftkey
Copy link

shiftkey commented Feb 5, 2016

@M-Zuber 🆒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment