From 84553b15a9a4f2fdacec2eaca08656d349d59042 Mon Sep 17 00:00:00 2001 From: peter-evans Date: Mon, 10 May 2021 00:10:35 +0000 Subject: [PATCH] [CI] test committed --- action.yml | 3 --- dist/index.js | 8 ++------ report.txt | 1 + 3 files changed, 3 insertions(+), 9 deletions(-) create mode 100644 report.txt diff --git a/action.yml b/action.yml index 0381724..c169c32 100644 --- a/action.yml +++ b/action.yml @@ -24,9 +24,6 @@ inputs: signoff: description: 'Add `Signed-off-by` line by the committer at the end of the commit log message.' default: false - gpg-sign: - description: 'GPG-sign commits.' - default: false branch: description: 'The pull request branch name.' default: 'create-pull-request/patch' diff --git a/dist/index.js b/dist/index.js index 8842ea4..b1d6be6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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'), diff --git a/report.txt b/report.txt new file mode 100644 index 0000000..8fd54f1 --- /dev/null +++ b/report.txt @@ -0,0 +1 @@ +1620605435