-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Changes from 2 commits
b4d86d0
30553d3
d7cb562
2366c99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
/// </value> | ||
public RepositoryVisibility Visibility { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets The affiliation property. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/// </summary> | ||
/// <value> | ||
/// The owner. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would think it should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/// </value> | ||
public RepositoryAffiliation Affiliation { get; set; } | ||
|
||
internal string DebuggerDisplay | ||
{ | ||
get | ||
|
@@ -103,4 +119,70 @@ public enum RepositorySort | |
[Parameter(Value = "full_name")] | ||
FullName | ||
} | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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, | ||
|
||
} | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. white space |
||
} | ||
} |
There was a problem hiding this comment.
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?