Skip to content

Commit

Permalink
Added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbokvad committed Sep 8, 2023
1 parent 6be0186 commit 1505e4d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/Pentest/PentestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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!');
Expand Down

0 comments on commit 1505e4d

Please sign in to comment.