Skip to content

Commit

Permalink
refactor project
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbokvad committed Sep 28, 2023
1 parent 8d155f2 commit 02e7042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
3 changes: 3 additions & 0 deletions src/branchprotection/BranchProtectionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:',
Expand Down

0 comments on commit 02e7042

Please sign in to comment.