Skip to content

Commit

Permalink
Log file content
Browse files Browse the repository at this point in the history
  • Loading branch information
willsawyerrrr committed Jan 22, 2024
1 parent 525cd16 commit 8661c03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ async function verify({ payload }: EmitterWebhookEvent<"pull_request">) {
return;
}

console.error("hello");

console.log(fileDiffs);

fileDiffs.forEach(async (fileDiff) => {
const { name, content } = (await safeOctokitRequest(octokit.rest.repos.getContent, {
owner: payload.repository.owner.login,
Expand All @@ -137,6 +141,7 @@ async function verify({ payload }: EmitterWebhookEvent<"pull_request">) {
writeFileSync(`/multi-gitter-runner/${name}`, content, {
mode: name === "script.sh" ? 0o755 : 0o644,
});
console.log(content);
});

let output: Buffer;
Expand Down

0 comments on commit 8661c03

Please sign in to comment.