mirror of
https://github.com/desktop/desktop
synced 2024-09-19 16:12:20 +00:00
22 lines
380 B
TypeScript
22 lines
380 B
TypeScript
import { spawn } from './spawn'
|
|
|
|
export async function getLogLines(
|
|
previousVersion: string
|
|
): Promise<ReadonlyArray<string>> {
|
|
const log = await spawn('git', [
|
|
'log',
|
|
`...${previousVersion}`,
|
|
'--merges',
|
|
'--grep="Merge pull request"',
|
|
'--format=format:%s',
|
|
'-z',
|
|
'--',
|
|
])
|
|
|
|
if (log.length === 0) {
|
|
return []
|
|
}
|
|
|
|
return log.split('\0')
|
|
}
|