diff --git a/action.yml b/action.yml index 6a65523..c306a7b 100644 --- a/action.yml +++ b/action.yml @@ -21,6 +21,9 @@ inputs: The author name and email address in the format `Display Name `. Defaults to the user who triggered the workflow run. default: '${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>' + signoff: + description: 'Add `Signed-off-by` line by the committer at the end of the commit log message.' + default: false branch: description: 'The pull request branch name.' default: 'create-pull-request/patch' @@ -56,9 +59,6 @@ inputs: draft: description: 'Create a draft pull request' default: false - signoff: - description: 'Add "Signed-off-by" to commit message' - default: false outputs: pull-request-number: description: 'The pull request number' diff --git a/src/create-pull-request.ts b/src/create-pull-request.ts index 29a0e4a..23e00c6 100644 --- a/src/create-pull-request.ts +++ b/src/create-pull-request.ts @@ -11,6 +11,7 @@ export interface Inputs { commitMessage: string committer: string author: string + signoff: boolean branch: string branchSuffix: string base: string @@ -23,7 +24,6 @@ export interface Inputs { teamReviewers: string[] milestone: number draft: boolean - signoff: boolean } export async function createPullRequest(inputs: Inputs): Promise { diff --git a/src/main.ts b/src/main.ts index 1766428..7e7b017 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,6 +11,7 @@ async function run(): Promise { commitMessage: core.getInput('commit-message'), committer: core.getInput('committer'), author: core.getInput('author'), + signoff: core.getInput('signoff') === 'true', branch: core.getInput('branch'), branchSuffix: core.getInput('branch-suffix'), base: core.getInput('base'), @@ -22,8 +23,7 @@ async function run(): Promise { reviewers: utils.getInputAsArray('reviewers'), teamReviewers: utils.getInputAsArray('team-reviewers'), milestone: Number(core.getInput('milestone')), - draft: core.getInput('draft') === 'true', - signoff: core.getInput('signoff') === 'true' + draft: core.getInput('draft') === 'true' } core.debug(`Inputs: ${inspect(inputs)}`)