Skip to content

Commit

Permalink
fix execa import in get-report-message
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Nov 21, 2022
1 parent e9ac981 commit 8c79480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/get-report-message.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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')
Expand Down

0 comments on commit 8c79480

Please sign in to comment.