From 46f6e4499dfbe62c900ec2b3d3ba17b358efcd1c Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 4 Jul 2024 21:49:10 +0100 Subject: [PATCH] fix: not sure what's broken but no time to investigate i knew updating octokit would break something stupid and here's the exact stupid thing breaking. literally no idea. all autogenned types that don't seem to even agree with eachother. What even is the point man --- github-bot/src/main.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/github-bot/src/main.ts b/github-bot/src/main.ts index e1d59b9fd..c39aa0fd6 100644 --- a/github-bot/src/main.ts +++ b/github-bot/src/main.ts @@ -58,11 +58,11 @@ app.webhooks.on(["pull_request.opened", "pull_request.edited"], async ({ octokit mkSeedDiffViewMsg( payload.pull_request.base.repo.url, payload.pull_request.base.sha, - payload.pull_request.head.repo.url, + payload.pull_request.head.repo!.url, payload.pull_request.head.sha ), octokit, - payload.repository, + payload.repository as any, payload.pull_request.number ); } @@ -82,11 +82,11 @@ ${err} ${mkSeedDiffViewMsg( payload.pull_request.base.repo.url, payload.pull_request.base.sha, - payload.pull_request.head.repo.url, + payload.pull_request.head.repo!.url, payload.pull_request.head.sha )}`, octokit, - payload.repository, + payload.repository as any, payload.pull_request.number ); } @@ -103,7 +103,7 @@ app.webhooks.on(["issue_comment.created"], async ({ octokit, payload }) => { switch (cmd) { case "ping": { - await sendMsg("pong!", octokit, payload.repository, payload.issue.number); + await sendMsg("pong!", octokit, payload.repository as any, payload.issue.number); break; } @@ -124,7 +124,7 @@ app.webhooks.on(["issue_comment.created"], async ({ octokit, payload }) => { pr.head.sha ), octokit, - payload.repository, + payload.repository as any, pr.number ); break; @@ -134,7 +134,7 @@ app.webhooks.on(["issue_comment.created"], async ({ octokit, payload }) => { await sendMsg( `No idea what to do with command \`${cmd}\`, sorry!`, octokit, - payload.repository, + payload.repository as any, payload.issue.number ); }