diff --git a/src/index.ts b/src/index.ts index 5f182e4..36107ba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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, @@ -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;