diff --git a/scripts/get-report-message.ts b/scripts/get-report-message.ts index 28edcf1fe5a8..bae3aac17e54 100644 --- a/scripts/get-report-message.ts +++ b/scripts/get-report-message.ts @@ -1,7 +1,7 @@ /* eslint-disable no-console */ -import { command } from 'execa'; import { readJson } from 'fs-extra'; import { join } from 'path'; +import { execaCommand } from './utils/exec'; type Branch = 'main' | 'next' | 'alpha' | 'next-release' | 'latest-release'; type Workflow = 'merged' | 'daily'; @@ -26,7 +26,7 @@ const getFooter = async (branch: Branch, workflow: Workflow, job: string) => { : // show last 24h merges for daily workflow `git log --merges --since="24 hours ago" --pretty=format:"\`%h\` %<(12)%ar %s [%an]"`; - const result = await command(mergeCommits, { shell: true }); + const result = await execaCommand(mergeCommits, { shell: true }); const formattedResult = result.stdout // discord needs escaped line breaks .replace(/\n/g, '\\n')