Skip to content

Commit

Permalink
chore: removed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Dec 9, 2024
1 parent 7348f8c commit 4253782
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ import { Result } from "./types/results";
async function isUserAllowedToGeneratePermits(context: ContextPlugin) {
const { octokit, payload } = context;
const username = payload.sender.login;
console.log("+++++ check", username);
try {
const { data } = await octokit.rest.orgs.getMembershipForUser({
await octokit.rest.orgs.getMembershipForUser({
org: payload.repository.owner.login,
username,
});
console.log(data);
return true;
} catch (e) {
context.logger.debug(`${username} is not a member of ${context.payload.repository.owner.login}`, { e });
Expand Down

0 comments on commit 4253782

Please sign in to comment.