mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-05-14 10:32:42 +00:00
use source mode for deleted files
This commit is contained in:
@@ -196,6 +196,16 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
||||
`Pushing pull request branch to '${branchRemoteName}/${inputs.branch}'`
|
||||
)
|
||||
if (inputs.signCommit) {
|
||||
// Stash any uncommitted tracked and untracked changes
|
||||
const stashed = await git.stashPush(['--include-untracked'])
|
||||
await git.checkout(inputs.branch)
|
||||
// await githubHelper.pushSignedCommits(
|
||||
// branchRepository,
|
||||
// inputs.branch,
|
||||
// inputs.base,
|
||||
// inputs.commitMessage,
|
||||
// result.branchCommits
|
||||
// )
|
||||
await githubHelper.pushSignedCommit(
|
||||
branchRepository,
|
||||
inputs.branch,
|
||||
@@ -203,6 +213,10 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
||||
inputs.commitMessage,
|
||||
result.branchFileChanges
|
||||
)
|
||||
await git.checkout('-')
|
||||
if (stashed) {
|
||||
await git.stashPop()
|
||||
}
|
||||
} else {
|
||||
await git.push([
|
||||
'--force-with-lease',
|
||||
|
||||
Reference in New Issue
Block a user