mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
build file changes even when there is no diff
This commit is contained in:
parent
3a7a677a14
commit
018afb52b6
3 changed files with 11 additions and 6 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue