mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
cleanup after success commit
This commit is contained in:
parent
2d4e9657d4
commit
0e80eb58d9
2 changed files with 4 additions and 0 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -132,6 +132,8 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
|
|||
params.push('--signoff');
|
||||
}
|
||||
yield git.commit(params);
|
||||
git.exec(['reset', '--hard']);
|
||||
git.exec(['clean', '-f']);
|
||||
}
|
||||
// Perform fetch and reset the working base
|
||||
// Commits made during the workflow will be removed
|
||||
|
|
|
@ -129,6 +129,8 @@ export async function createOrUpdateBranch(
|
|||
params.push('--signoff')
|
||||
}
|
||||
await git.commit(params)
|
||||
git.exec(['reset', '--hard'])
|
||||
git.exec(['clean', '-f'])
|
||||
}
|
||||
|
||||
// Perform fetch and reset the working base
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue