Merge pull request #1140 from prayankmathur/master

Added enum ItemStateFilter to differentiate between search and list APIs
This commit is contained in:
Ryan Gribble
2016-03-29 22:39:52 +10:00
13 changed files with 45 additions and 27 deletions
+3 -3
View File
@@ -12,15 +12,15 @@ namespace Octokit
{
public PullRequestRequest()
{
State = ItemState.Open;
State = ItemStateFilter.Open;
SortProperty = PullRequestSort.Created;
SortDirection = SortDirection.Descending;
}
/// <summary>
/// "open" or "closed" to filter by state. Default is "open".
/// Which PullRequests to get. The default is <see cref="ItemStateFilter.Open"/>
/// </summary>
public ItemState State { get; set; }
public ItemStateFilter State { get; set; }
/// <summary>
/// Filter pulls by head user and branch name in the format of "user:ref-name".