From 5a0787cf2d63b7f6135900dc78d7e9edd4bba116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Wed, 6 Dec 2023 21:19:44 +0900 Subject: [PATCH] fix: dispatch params --- src/handlers/comment/handlers/issue/issue-closed.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/handlers/comment/handlers/issue/issue-closed.ts b/src/handlers/comment/handlers/issue/issue-closed.ts index ec1c96e0c..b25a46ad7 100644 --- a/src/handlers/comment/handlers/issue/issue-closed.ts +++ b/src/handlers/comment/handlers/issue/issue-closed.ts @@ -1,5 +1,4 @@ import Runtime from "../../../../bindings/bot-runtime"; -import { env } from "../../../../bindings/env"; import { checkUserPermissionForRepoAndOrg, getAllIssueComments } from "../../../../helpers/issue"; import { Context } from "../../../../types/context"; import { Comment, Issue, Payload, StateReason } from "../../../../types/payload"; @@ -26,17 +25,13 @@ export async function issueClosed(context: Context) { secretToken: process.env.GITHUB_TOKEN, owner, repo: repository, - issueNumber, + issueNumber: issue.number.toString(), payload: JSON.stringify({ issue, issueComments, - openAiKey: context.config.keys.openAi, pullRequestComments, botConfig: context.config, repoCollaborators, - X25519_PRIVATE_KEY: env.X25519_PRIVATE_KEY, - supabaseUrl: env.SUPABASE_URL, - supabaseKey: env.SUPABASE_KEY, }), }); const logger = Runtime.getState().logger;