Skip to content

Commit

Permalink
Update src/filters.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Przemek Rzad <roopert7@gmail.com>
  • Loading branch information
Bullrich and rzadp authored Jun 5, 2023
1 parent 50726a4 commit b933304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export const byNoComments = (issue: IssueData): boolean => issue.comments === 0;
export const isNotFromAuthor = ({ user }: IssueData, authors: string[]): boolean =>
!authors.some((author) => author.toLowerCase() === user?.login.toLowerCase());

export const byLabels = (issue: IssueData, labels: string[]): boolean =>
export const byLabels = (issue: IssueData, requiredLabels: string[]): boolean =>
issue.labels?.map((l) => l.name.toLowerCase()).some((l) => labels.map((lb) => lb.toLowerCase()).includes(l));

0 comments on commit b933304

Please sign in to comment.