diff --git a/Octokit/Models/Request/SearchIssuesRequest.cs b/Octokit/Models/Request/SearchIssuesRequest.cs
index f9a5a332..31c7e3e1 100644
--- a/Octokit/Models/Request/SearchIssuesRequest.cs
+++ b/Octokit/Models/Request/SearchIssuesRequest.cs
@@ -43,7 +43,7 @@ namespace Octokit
}
///
- /// Optional Sort field. One of comments, created, or updated.
+ /// Optional Sort field. One of comments, created, updated,or merged
/// If not provided, results are sorted by best match.
///
///
@@ -177,6 +177,13 @@ namespace Octokit
///
public DateRange Updated { get; set; }
+ ///
+ /// Filters issues based on times when they were last merged
+ ///
+ ///
+ /// https://help.github.com/articles/searching-issues/#search-based-on-when-a-pull-request-was-merged
+ ///
+ public DateRange Merged { get; set; }
///
/// Filters issues based on the quantity of comments.
///
@@ -196,6 +203,7 @@ namespace Octokit
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public RepositoryCollection Repos { get; set; }
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
public override IReadOnlyList MergedQualifiers()
{
var parameters = new List();
@@ -261,7 +269,10 @@ namespace Octokit
{
parameters.Add(String.Format(CultureInfo.InvariantCulture, "updated:{0}", Updated));
}
-
+ if (Merged != null)
+ {
+ parameters.Add(String.Format(CultureInfo.InvariantCulture, "merged:{0}", Merged));
+ }
if (Comments != null)
{
parameters.Add(String.Format(CultureInfo.InvariantCulture, "comments:{0}", Comments));
@@ -312,7 +323,12 @@ namespace Octokit
/// search by last updated
///
[Parameter(Value = "updated")]
- Updated
+ Updated,
+ ///
+ /// search by last merged
+ ///
+ [Parameter(Value = "merged")]
+ Merged
}
public enum IssueInQualifier