mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
feat: add option to choose between force and force-with-lease
This commit is contained in:
parent
f094b77505
commit
e4c00137fe
4 changed files with 10 additions and 4 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
@ -393,7 +393,7 @@ function createPullRequest(inputs) {
|
|||
// The branch was created or updated
|
||||
core.startGroup(`Pushing pull request branch to '${branchRemoteName}/${inputs.branch}'`);
|
||||
yield git.push([
|
||||
'--force-with-lease',
|
||||
inputs.force ? '--force' : '--force-with-lease',
|
||||
branchRemoteName,
|
||||
`HEAD:refs/heads/${inputs.branch}`
|
||||
]);
|
||||
|
@ -1109,7 +1109,8 @@ function run() {
|
|||
reviewers: utils.getInputAsArray('reviewers'),
|
||||
teamReviewers: utils.getInputAsArray('team-reviewers'),
|
||||
milestone: Number(core.getInput('milestone')),
|
||||
draft: core.getBooleanInput('draft')
|
||||
draft: core.getBooleanInput('draft'),
|
||||
force: core.getBooleanInput('force')
|
||||
};
|
||||
core.debug(`Inputs: ${(0, util_1.inspect)(inputs)}`);
|
||||
yield (0, create_pull_request_1.createPullRequest)(inputs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue