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 59abe98 commit 4d352d8
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,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;
Expand Down

0 comments on commit 4d352d8

Please sign in to comment.