diff --git a/src/Pentest/PentestService.ts b/src/Pentest/PentestService.ts index 7079ea9d..70dab8fb 100644 --- a/src/Pentest/PentestService.ts +++ b/src/Pentest/PentestService.ts @@ -39,7 +39,20 @@ export class PentestService { // core.warning('Error getting column!'); // console.log('Error: ', error); // }); - await octokit.rest.issues + octokit.rest.projects + .listForOrg({ + org: owner + }) + .then(async (response) => { + console.log('Got the cards'); + console.log(response.data); + }) + .catch((error) => { + core.warning('Error getting cards!'); + console.log('Error: ', error); + }); + + const customLabelIssues = await octokit.rest.issues .listForRepo({ owner: owner, repo: repo, @@ -53,6 +66,7 @@ export class PentestService { return issue.labels.some((label: any) => label.name === pentestDate.boardsTag); }); console.log('customLabelIssues', customLabelIssues.length); + return customLabelIssues; }) .catch((error) => { core.warning('Error getting project for repo!');