Skip to content

Commit

Permalink
Merge pull request #19913 from storybookjs/fix/execa-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf authored Nov 22, 2022
2 parents e3b045d + 8c79480 commit 52c879a
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 52c879a

Please sign in to comment.