Add support for signed commits (#3055)

This commit is contained in:
Ravi
2024-07-25 22:12:45 +09:00
committed by Peter Evans
parent ba864ad40c
commit 22fb2d9a65
8 changed files with 27416 additions and 2208 deletions

View File

@ -166,6 +166,16 @@ export class GitCommandManager {
return output.exitCode === 1
}
async getChangedFiles(ref: string, options?: string[]): Promise<string[]> {
const args = ['diff', '--name-only']
if (options) {
args.push(...options)
}
args.push(ref)
const output = await this.exec(args)
return output.stdout.split("\n").filter((filename) => filename != '')
}
async isDirty(untracked: boolean, pathspec?: string[]): Promise<boolean> {
const pathspecArgs = pathspec ? ['--', ...pathspec] : []
// Check untracked changes