mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 20:30:41 +00:00
add islocked filter to SeachIssuesRequest (#2623)
* add islocker filter to SeachIssuesRequest * update docs * Update docs/search.md with review suggestions Co-authored-by: Keegan Campbell <me@kfcampbell.com> Co-authored-by: notauserx <notauserx@users.noreply.github.com> Co-authored-by: Keegan Campbell <me@kfcampbell.com>
This commit is contained in:
@@ -170,6 +170,17 @@ public class SearchIssuesRequestTests
|
||||
Assert.Contains("is:pr", request.MergedQualifiers());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void HandlesIsLockedUnlockedAttributeCorrectly()
|
||||
{
|
||||
var request = new SearchIssuesRequest("test");
|
||||
Assert.DoesNotContain(request.MergedQualifiers(), x => x.Contains("is:"));
|
||||
|
||||
request.Is = new List<IssueIsQualifier> { IssueIsQualifier.Locked, IssueIsQualifier.Unlocked };
|
||||
Assert.Contains("is:locked", request.MergedQualifiers());
|
||||
Assert.Contains("is:unlocked", request.MergedQualifiers());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void HandlesStatusAttributeCorrectly()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user