Enable support for milestone-based issues queries (#1788)

* Added support for Milestone filter in SearchIssuesRequest

* Fixed some styling issues to match with the style of the existing code

* Wrap milestone value with double quotes as milestones can contain spaces

* Allow milestone filter to contain double quotes

* Ability to search by milestone exclusions

* Moved the EscapeDoubleQuotes method to StringExtensions
This commit is contained in:
mkArtak
2018-03-27 23:45:51 -07:00
committed by Ryan Gribble
parent 4e804f61a6
commit 6577c3ccba
6 changed files with 107 additions and 7 deletions
+11
View File
@@ -87,6 +87,17 @@ namespace Octokit
Ensure.ArgumentNotNullOrEmptyString(value, nameof(value));
return string.Concat(value[0].ToString().ToUpperInvariant(), value.Substring(1));
}
internal static string EscapeDoubleQuotes(this string value)
{
if (value != null)
{
return value.Replace("\"", "\\\"");
}
return value;
}
static IEnumerable<string> SplitUpperCase(this string source)
{
Ensure.ArgumentNotNullOrEmptyString(source, nameof(source));