From 8c794803cb0a06dbad9d95e3cb011f44b2171b59 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Mon, 21 Nov 2022 17:06:53 +0100 Subject: [PATCH] fix execa import in get-report-message --- scripts/get-report-message.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')