aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/commentCodeGeneration.ts
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/commentCodeGeneration.ts')
-rw-r--r--.github/workflows/commentCodeGeneration.ts6
1 files changed, 3 insertions, 3 deletions
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<typeof GitHub>,
context: typeof ctx,
isSuccess: boolean
-) => {
+): Promise<void> {
const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
@@ -45,4 +45,4 @@ module.exports = async (
body,
});
}
-};
+}