We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50726a4 commit 3a6b43aCopy full SHA for 3a6b43a
src/filters.ts
@@ -8,5 +8,5 @@ export const byNoComments = (issue: IssueData): boolean => issue.comments === 0;
8
export const isNotFromAuthor = ({ user }: IssueData, authors: string[]): boolean =>
9
!authors.some((author) => author.toLowerCase() === user?.login.toLowerCase());
10
11
-export const byLabels = (issue: IssueData, labels: string[]): boolean =>
12
- issue.labels?.map((l) => l.name.toLowerCase()).some((l) => labels.map((lb) => lb.toLowerCase()).includes(l));
+export const byLabels = (issue: IssueData, requiredLabels: string[]): boolean =>
+ issue.labels?.map((l) => l.name.toLowerCase()).some((l) => requiredLabels.map((lb) => lb.toLowerCase()).includes(l));
0 commit comments