Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added new parameters to RepositoryRequest.cs #1096

Merged
merged 4 commits into from
Feb 11, 2016
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions Octokit/Models/Request/RepositoryRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,22 @@ public class RepositoryRequest : RequestParameters
/// </value>
public SortDirection Direction { get; set; }

/// <summary>
/// Gets or sets the visibility property.
/// </summary>
/// <value>
/// The no.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by this?

/// </value>
public RepositoryVisibility Visibility { get; set; }

/// <summary>
/// Gets or sets The affiliation property.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the should probably be lower case

/// </summary>
/// <value>
/// The owner.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would think it should be The affiliation

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The owner should be changed to The affiliation

/// </value>
public RepositoryAffiliation Affiliation { get; set; }

internal string DebuggerDisplay
{
get
Expand Down Expand Up @@ -103,4 +119,70 @@ public enum RepositorySort
[Parameter(Value = "full_name")]
FullName
}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

white space

public enum RepositoryVisibility
{
/// <summary>
/// Returns only public repositories
/// </summary>
Public,

/// <summary>
/// Returns only private repositories
/// </summary>
Private,

/// <summary>
/// Return both public and private repositories
/// </summary>
All,

}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

white space

public enum RepositoryAffiliation
{
/// <summary>
/// Repositories that are owned by the authenticated user
/// </summary>
Owner,

/// <summary>
/// Repositories that the user has been added to as a collaborator.
/// </summary>
Collaborator,

/// <summary>
/// Repositories that the user has access to through being a member of an organization.
/// This includes every repository on every team that the user is on.
/// </summary>
[Parameter(Value = "organization_member")]
OrganizationMember,

/// <summary>
/// Return repositories that are owned by authenticated user and added to as a collaborator.
/// </summary>
[Parameter(Value = "owner, collaborator")]
OwnerAndCollaborator,

/// <summary>
/// Return repositories that are owned by authenticated user or user is a organization member.
/// </summary>
[Parameter(Value = "owner, organization_member")]
OwnerAndOrganizationMember,

/// <summary>
/// Return repositories that user has been added as collaborator or user is a organization member.
/// </summary>
[Parameter(Value = "collaborator, organization_member")]
CollaboratorAndOrganizationMember,

/// <summary>
/// Returns all repositories where user is owner,collaborator or organization member.
/// </summary>
[Parameter(Value = "owner, collaborator, organization_member")]
All

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

white space

}
}