From ec5609b18c79ea9fc8183ae78e917801e6a8a3f4 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 18 Feb 2024 22:43:16 +0100 Subject: chore: convert to esm (#2261) --- .github/workflows/commentCodeGeneration.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github/workflows/commentCodeGeneration.ts') diff --git a/.github/workflows/commentCodeGeneration.ts b/.github/workflows/commentCodeGeneration.ts index f456e563..ed5258d5 100644 --- a/.github/workflows/commentCodeGeneration.ts +++ b/.github/workflows/commentCodeGeneration.ts @@ -10,11 +10,11 @@ import type { context as ctx, GitHub } from '@actions/github/lib/utils'; * @param context An object containing the context of the workflow run * @param isSuccess A boolean indicating whether the workflow was successful */ -module.exports = async ( +export async function script( github: InstanceType, context: typeof ctx, isSuccess: boolean -) => { +): Promise { const { data: comments } = await github.rest.issues.listComments({ owner: context.repo.owner, repo: context.repo.repo, @@ -45,4 +45,4 @@ module.exports = async ( body, }); } -}; +} -- cgit v1.2.3