mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
fix: remove unnecessary gpg-sign input
This commit is contained in:
parent
c1d92ef456
commit
8bb8511e4d
8 changed files with 7 additions and 75 deletions
8
dist/index.js
vendored
8
dist/index.js
vendored
|
@ -99,7 +99,7 @@ function splitLines(multilineString) {
|
|||
.map(s => s.trim())
|
||||
.filter(x => x !== '');
|
||||
}
|
||||
function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName, signoff, gpgSign) {
|
||||
function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName, signoff) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
// Get the working base.
|
||||
// When a ref, it may or may not be the actual base.
|
||||
|
@ -129,9 +129,6 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
|
|||
if (signoff) {
|
||||
params.push('--signoff');
|
||||
}
|
||||
if (gpgSign) {
|
||||
params.push('--gpg-sign');
|
||||
}
|
||||
yield git.commit(params);
|
||||
}
|
||||
// Perform fetch and reset the working base
|
||||
|
@ -378,7 +375,7 @@ function createPullRequest(inputs) {
|
|||
core.endGroup();
|
||||
// Create or update the pull request branch
|
||||
core.startGroup('Create or update the pull request branch');
|
||||
const result = yield create_or_update_branch_1.createOrUpdateBranch(git, inputs.commitMessage, inputs.base, inputs.branch, branchRemoteName, inputs.signoff, inputs.gpgSign);
|
||||
const result = yield create_or_update_branch_1.createOrUpdateBranch(git, inputs.commitMessage, inputs.base, inputs.branch, branchRemoteName, inputs.signoff);
|
||||
core.endGroup();
|
||||
if (['created', 'updated'].includes(result.action)) {
|
||||
// The branch was created or updated
|
||||
|
@ -1073,7 +1070,6 @@ function run() {
|
|||
committer: core.getInput('committer'),
|
||||
author: core.getInput('author'),
|
||||
signoff: core.getInput('signoff') === 'true',
|
||||
gpgSign: core.getInput('gpg-sign') === 'true',
|
||||
branch: core.getInput('branch'),
|
||||
deleteBranch: core.getInput('delete-branch') === 'true',
|
||||
branchSuffix: core.getInput('branch-suffix'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue