From 02e704280e049a8385fef371e58336cff88bf324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Bokvad=20Engar=C3=A5s?= Date: Thu, 28 Sep 2023 15:34:01 +0200 Subject: [PATCH] refactor project --- .github/workflows/build.yml | 4 ++-- src/branchprotection/BranchProtectionService.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16a02c02..ee2be155 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,8 +24,8 @@ jobs: run: npm run build - name: 'Run Compliance State' uses: ./ - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: cydigConfigPath: ${{ github.workspace }}/src/cydigconfig.json github-token: ${{ secrets.MY_GITHUB_PAT}} + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts index 45ebadca..53ec19dc 100644 --- a/src/branchprotection/BranchProtectionService.ts +++ b/src/branchprotection/BranchProtectionService.ts @@ -39,6 +39,9 @@ export class BranchProtectionService { branch: 'main', }) .then((response: any) => { + console.log('only response', response); + console.log('Data without json()', response.data); + console.log('only response with json()', response.json()); const data: any = response.json(); console.log( 'Branch protection is enabled, and the numbers of reviewers are:',