From 8a72386e9daefbfe94c41d613d74b5b1d77b412e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Bokvad=20Engar=C3=A5s?= Date: Fri, 8 Sep 2023 10:25:26 +0200 Subject: [PATCH] Added logging --- src/Pentest/PentestService.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Pentest/PentestService.ts b/src/Pentest/PentestService.ts index 237e162c..f5d33b70 100644 --- a/src/Pentest/PentestService.ts +++ b/src/Pentest/PentestService.ts @@ -46,7 +46,11 @@ export class PentestService { }) .then(async (response) => { console.log('list for repo'); - console.log(response.data); + const issues = response.data; + const customLabelIssues = issues.filter((issue) => { + return issue.labels.some((label: any) => label.name === pentestDate.boardsTag); + }); + console.log('customLabelIssues', customLabelIssues); }) .catch((error) => { core.warning('Error getting project for repo!');