diff options
| author | Shinigami <[email protected]> | 2024-02-18 22:43:16 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-18 22:43:16 +0100 |
| commit | ec5609b18c79ea9fc8183ae78e917801e6a8a3f4 (patch) | |
| tree | 35999710134991d586ee53d64808e76e351dfa08 /.github/workflows/commentCodeGeneration.ts | |
| parent | db88a1518e8d0ccfe191bd48a1ae8641a9a25303 (diff) | |
| download | faker-ec5609b18c79ea9fc8183ae78e917801e6a8a3f4.tar.xz faker-ec5609b18c79ea9fc8183ae78e917801e6a8a3f4.zip | |
chore: convert to esm (#2261)
Diffstat (limited to '.github/workflows/commentCodeGeneration.ts')
| -rw-r--r-- | .github/workflows/commentCodeGeneration.ts | 6 |
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, }); } -}; +} |
