mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-29 17:32:44 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user