github-desktop/script/changelog/git.ts

14 lines
290 B
TypeScript
Raw Normal View History

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')))