From 4d352d8d6f1b0e85d8441216b77e9a6923fd754b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Bokvad=20Engar=C3=A5s?= Date: Fri, 8 Sep 2023 10:20:27 +0200 Subject: [PATCH] Added logging --- src/Pentest/PentestService.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Pentest/PentestService.ts b/src/Pentest/PentestService.ts index ba31bd56..efbc9521 100644 --- a/src/Pentest/PentestService.ts +++ b/src/Pentest/PentestService.ts @@ -39,12 +39,26 @@ export class PentestService { // core.warning('Error getting column!'); // console.log('Error: ', error); // }); - await octokit.rest.projects .listForRepo({ owner: owner, repo: repo, }) + .then(async (response) => { + console.log('list for repo'); + console.log(response.data); + }) + .catch((error) => { + core.warning('Error getting project for repo!'); + console.log('Error: ', error); + }); + + await octokit.rest.projects + .listCards({ + owner: owner, + repo: repo, + column_id: 24, + }) .then(async (response) => { console.log('Got the cards'); const projectCards = response.data;