Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor project #11

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading