Skip to content

Commit

Permalink
log hooks forr debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
olivercodes committed Aug 11, 2022
1 parent e60bc2e commit c2b8525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61997,6 +61997,7 @@ const {getUserIsApprover} = __nccwpck_require__(5008);
// const repo = 'repo';
// const org = 'org';
const { actor, repo, org } = github.context;
console.log(actor, repo, org);
try {
const isApprover = await getUserIsApprover(org, repo, actor);
if (!isApprover) {
Expand All @@ -62005,9 +62006,6 @@ const {getUserIsApprover} = __nccwpck_require__(5008);
} catch (error) {
core.setFailed(error.message);
}
console.log(isApprover);


})();


Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {getUserIsApprover} = require('./lib/helpers');
// const repo = 'repo';
// const org = 'org';
const { actor, repo, org } = github.context;
console.log(actor, repo, org);
try {
const isApprover = await getUserIsApprover(org, repo, actor);
if (!isApprover) {
Expand All @@ -16,8 +17,5 @@ const {getUserIsApprover} = require('./lib/helpers');
} catch (error) {
core.setFailed(error.message);
}
console.log(isApprover);


})();

0 comments on commit c2b8525

Please sign in to comment.