Skip to content

Commit 3a6b43a

Browse files
Bullrichrzadp
andcommitted
Update src/filters.ts
Co-authored-by: Przemek Rzad <[email protected]>
1 parent 50726a4 commit 3a6b43a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/filters.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export const byNoComments = (issue: IssueData): boolean => issue.comments === 0;
88
export const isNotFromAuthor = ({ user }: IssueData, authors: string[]): boolean =>
99
!authors.some((author) => author.toLowerCase() === user?.login.toLowerCase());
1010

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));
11+
export const byLabels = (issue: IssueData, requiredLabels: string[]): boolean =>
12+
issue.labels?.map((l) => l.name.toLowerCase()).some((l) => requiredLabels.map((lb) => lb.toLowerCase()).includes(l));

0 commit comments

Comments
 (0)