build file changes even when there is no diff

This commit is contained in:
Peter Evans 2024-08-02 16:38:58 +00:00
parent 6c5dc224d1
commit 9cd16daf06
3 changed files with 11 additions and 6 deletions

View file

@ -333,9 +333,8 @@ export async function createOrUpdateBranch(
result.hasDiffWithBase = await isAhead(git, base, branch)
}
if (result.hasDiffWithBase) {
result.branchFileChanges = await buildBranchFileChanges(git, base, branch)
}
// Build the branch file changes
result.branchFileChanges = await buildBranchFileChanges(git, base, branch)
// Get the pull request branch SHA
result.headSha = await git.revParse('HEAD')