mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
13 lines
290 B
TypeScript
13 lines
290 B
TypeScript
import { sh } from '../sh'
|
|
|
|
export const getLogLines = (previousVersion: string) =>
|
|
sh(
|
|
'git',
|
|
'log',
|
|
`...${previousVersion}`,
|
|
'--merges',
|
|
'--grep="Merge pull request"',
|
|
'--format=format:%s',
|
|
'-z',
|
|
'--'
|
|
).then(x => (x.length === 0 ? [] : x.split('\0')))
|