aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/commentCodeGeneration.ts
diff options
context:
space:
mode:
authorShinigami <[email protected]>2024-02-18 22:43:16 +0100
committerGitHub <[email protected]>2024-02-18 22:43:16 +0100
commitec5609b18c79ea9fc8183ae78e917801e6a8a3f4 (patch)
tree35999710134991d586ee53d64808e76e351dfa08 /.github/workflows/commentCodeGeneration.ts
parentdb88a1518e8d0ccfe191bd48a1ae8641a9a25303 (diff)
downloadfaker-ec5609b18c79ea9fc8183ae78e917801e6a8a3f4.tar.xz
faker-ec5609b18c79ea9fc8183ae78e917801e6a8a3f4.zip
chore: convert to esm (#2261)
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,
});
}
-};
+}