1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-13 11:01:40 +02:00

feat(release-please): add signoff options to sign off commits (#374)

This commit is contained in:
Benjamin E. Coe
2021-09-23 18:19:02 -04:00
committed by GitHub
parent 526ef9c27a
commit 76774804a8
6 changed files with 70 additions and 39 deletions

View File

@@ -9,6 +9,8 @@ const GITHUB_RELEASE_COMMAND = 'github-release'
const GITHUB_RELEASE_PR_COMMAND = 'release-pr'
const GITHUB_API_URL = 'https://api.github.com'
const signoff = core.getInput('signoff') || undefined
function getBooleanInput (input) {
const trueValue = ['true', 'True', 'TRUE', 'yes', 'Yes', 'YES', 'y', 'Y', 'on', 'On', 'ON']
const falseValue = ['false', 'False', 'FALSE', 'no', 'No', 'NO', 'n', 'N', 'off', 'Off', 'OFF']
@@ -31,7 +33,8 @@ function getGitHubInput () {
function getManifestInput () {
return {
configFile: core.getInput('config-file') || CONFIG_FILE,
manifestFile: core.getInput('manifest-file') || MANIFEST_FILE
manifestFile: core.getInput('manifest-file') || MANIFEST_FILE,
signoff
}
}
@@ -135,7 +138,8 @@ async function main () {
changelogSections,
versionFile,
defaultBranch,
pullRequestTitlePattern
pullRequestTitlePattern,
signoff
})
if (pr) {