Skip to content

Commit

Permalink
Update Pull Request search to use contain rather than endswith (#5707)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Mar 23, 2023
1 parent 89f2b2d commit c14dbab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public async Task<IEnumerable<string>> GetReviewFirstLevelPropertiesAsync(string
queryStringBuilder.Append($" OR CONTAINS(r.Name, {query}, true)");
queryStringBuilder.Append($" OR CONTAINS(r.ServiceName, {query}, true)");
queryStringBuilder.Append($" OR CONTAINS(r.PackageDisplayName, {query}, true)");
queryStringBuilder.Append($" OR ENDSWITH(ARRAY_SLICE(r.Revisions, -1)[0].Label, {query}, true)");
queryStringBuilder.Append($" OR CONTAINS(ARRAY_SLICE(r.Revisions, -1)[0].Label, {query}, true)");
}
queryStringBuilder.Append($")");
}
Expand Down

0 comments on commit c14dbab

Please sign in to comment.