Skip to content

Commit

Permalink
Apply the CSSWG triage predicate to css-houdini-drafts and fxtf-drafts.
Browse files Browse the repository at this point in the history
Fixes #32.
  • Loading branch information
jyasskin committed Mar 7, 2024
1 parent 2b5a6b4 commit f19bfb8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scanner/per-repo.ts
@@ -1,9 +1,13 @@
import { IssueOrPr } from "./github.js";

function cssTriagePredicate (issue: Pick<IssueOrPr, 'labels'>) {
return issue.labels.nodes.length > 0;
}

const triagePredicates: Record<`${string}/${string}`, (issue: Pick<IssueOrPr, 'labels'>) => boolean> = {
'w3c/csswg-drafts': function (issue: Pick<IssueOrPr, 'labels'>) {
return issue.labels.nodes.length > 0;
},
'w3c/css-houdini-drafts': cssTriagePredicate,
'w3c/csswg-drafts': cssTriagePredicate,
'w3c/fxtf-drafts': cssTriagePredicate,
};

// True if this repository has configured a custom function to say whether an issue is triaged
Expand Down

0 comments on commit f19bfb8

Please sign in to comment.