Skip to content

Commit c2b8525

Browse files
committed
log hooks forr debugging
1 parent e60bc2e commit c2b8525

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

dist/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61997,6 +61997,7 @@ const {getUserIsApprover} = __nccwpck_require__(5008);
6199761997
// const repo = 'repo';
6199861998
// const org = 'org';
6199961999
const { actor, repo, org } = github.context;
62000+
console.log(actor, repo, org);
6200062001
try {
6200162002
const isApprover = await getUserIsApprover(org, repo, actor);
6200262003
if (!isApprover) {
@@ -62005,9 +62006,6 @@ const {getUserIsApprover} = __nccwpck_require__(5008);
6200562006
} catch (error) {
6200662007
core.setFailed(error.message);
6200762008
}
62008-
console.log(isApprover);
62009-
62010-
6201162009
})();
6201262010

6201362011

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const {getUserIsApprover} = require('./lib/helpers');
88
// const repo = 'repo';
99
// const org = 'org';
1010
const { actor, repo, org } = github.context;
11+
console.log(actor, repo, org);
1112
try {
1213
const isApprover = await getUserIsApprover(org, repo, actor);
1314
if (!isApprover) {
@@ -16,8 +17,5 @@ const {getUserIsApprover} = require('./lib/helpers');
1617
} catch (error) {
1718
core.setFailed(error.message);
1819
}
19-
console.log(isApprover);
20-
21-
2220
})();
2321

0 commit comments

Comments
 (0)