Skip to content

Commit

Permalink
Merge pull request #11 from Omegapoint/feature/NewTesterTest3
Browse files Browse the repository at this point in the history
refactor project
  • Loading branch information
jonathanbokvad authored Sep 28, 2023
2 parents 670c346 + 02e7042 commit 6597a8f
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 6597a8f

Please sign in to comment.