Skip to content

Commit

Permalink
fix: removed debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ariesgun authored and ubiquity-os[bot] committed Nov 3, 2024
1 parent 734f97b commit ad20e32
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/handlers/shared/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,13 @@ export async function start(
let commitHash: string | null = null;

try {
console.log(context.payload.repository.owner.login);
console.log(context.payload.repository.name);
console.log(context.payload.repository.default_branch)

const hashResponse = await context.octokit.rest.repos.getCommit({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
ref: context.payload.repository.default_branch,
});
commitHash = hashResponse.data.sha;
console.log(commitHash)
} catch (e) {
logger.error("...", e)
logger.error("Error while getting commit hash", { error: e as Error });
}

Expand Down

0 comments on commit ad20e32

Please sign in to comment.