Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NGitLab/Impl/PipelineClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private string CreateSearchUrl(PipelineQuery query)
if (query.Scope.HasValue)
queryEntries.Add("scope", query.Scope.Value.ToString());
if (query.Status.HasValue)
queryEntries.Add("status", query.Status.Value.ToString());
queryEntries.Add("status", query.Status.Value.ToString().ToLower());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As good practice, in most cases it's better to use ToLowerInvariant() than ToLower() (which is culture-sensitive).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@louis-z We should add the BannedSymbol analyzer to ensure nobody uses this method (and a few other problematic methods)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I'll add it.

if (!string.IsNullOrWhiteSpace(query.Ref))
queryEntries.Add("ref", query.Ref);
if (!string.IsNullOrWhiteSpace(query.Sha))
Expand Down