Skip to content

Commit 0439ace

Browse files
Case-insensitive compare for PRIORITY_EVENTUALLY
1 parent 5c11b5b commit 0439ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scanner/slo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const sloLabels = {
2828
* It's also possible to define a custom isTriaged predicate for each repository.
2929
*/
3030
export function hasLabels(repo: Pick<Repository, 'nameWithOwner' | 'labels'>): boolean {
31-
return hasTriagePredicate(repo.nameWithOwner) || repo.labels.nodes.some(labelNode => labelNode.name === PRIORITY_EVENTUALLY);
31+
return hasTriagePredicate(repo.nameWithOwner) || repo.labels.nodes.some(labelNode => labelNode.name.toLowerCase() === PRIORITY_EVENTUALLY);
3232
}
3333

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

0 commit comments

Comments
 (0)