fix format and cleanup

This commit is contained in:
Peter Evans
2024-08-09 13:04:15 +00:00
parent 4c77294175
commit 384bd7f976
4 changed files with 11 additions and 23 deletions

View File

@ -321,13 +321,13 @@ export async function createOrUpdateBranch(
result.hasDiffWithBase = await isAhead(git, base, branch)
}
// Build the branch commits
result.branchCommits = await buildBranchCommits(git, base, branch)
// Get the base and head SHAs
result.baseSha = await git.revParse(base)
result.headSha = await git.revParse(branch)
// Build the branch commits
result.branchCommits = await buildBranchCommits(git, base, branch)
// Delete the temporary branch
await git.exec(['branch', '--delete', '--force', tempBranch])