From 9cf6de71b2f366de3f2ba27be402c09d95754c12 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Mon, 19 Dec 2022 06:02:47 +0000 Subject: [PATCH] chore: remove debug logs --- github-bot/src/main.ts | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/github-bot/src/main.ts b/github-bot/src/main.ts index 0805a511b..c5235b79c 100644 --- a/github-bot/src/main.ts +++ b/github-bot/src/main.ts @@ -42,27 +42,20 @@ app.webhooks.on( `https://api.github.com/repos/TNG-dev/Tachi/pulls/${body.number}/files` ).then((r) => r.json())) as Array<{ filename: string }>; - console.log(`Files Changed: ${filesChanged.map((e) => e.filename).join(", ")}`); - // if any file modified in this pr is a collection if (filesChanged.some((k) => k.filename.startsWith("database-seeds/collections"))) { // post a link to the diff viewer in the PR comments. - const res = await octokit.request( - "POST /repos/{owner}/{repo}/issues/{issue_number}/comments", - { - owner: body.repository.owner.login, - repo: body.repository.name, - issue_number: body.pull_request.number, - body: mkSeedDiffViewMsg( - body.pull_request.head.repo.url, - body.pull_request.head.sha, - body.pull_request.base.repo.url, - body.pull_request.base.sha - ), - } - ); - - console.dir(res); + await octokit.request("POST /repos/{owner}/{repo}/issues/{issue_number}/comments", { + owner: body.repository.owner.login, + repo: body.repository.name, + issue_number: body.pull_request.number, + body: mkSeedDiffViewMsg( + body.pull_request.head.repo.url, + body.pull_request.head.sha, + body.pull_request.base.repo.url, + body.pull_request.base.sha + ), + }); } } );