Skip to content

Commit

Permalink
Case-insensitive compare for PRIORITY_EVENTUALLY
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwilson-google authored and jyasskin committed Nov 26, 2024
1 parent 5c11b5b commit f9dbb06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner/slo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const sloLabels = {
* It's also possible to define a custom isTriaged predicate for each repository.
*/
export function hasLabels(repo: Pick<Repository, 'nameWithOwner' | 'labels'>): boolean {
return hasTriagePredicate(repo.nameWithOwner) || repo.labels.nodes.some(labelNode => labelNode.name === PRIORITY_EVENTUALLY);
return hasTriagePredicate(repo.nameWithOwner) || repo.labels.nodes.some(labelNode => labelNode.name.toLowerCase() === PRIORITY_EVENTUALLY);
}

export function whichSlo(repoNameWithOwner: string, issue: Pick<IssueOrPr, 'labels' | 'isDraft'>): SloType {
Expand Down

0 comments on commit f9dbb06

Please sign in to comment.