Move input next to commit related inputs for context
This commit is contained in:
parent
bf7dd38b26
commit
ee482f51bd
|
@ -21,6 +21,9 @@ inputs:
|
||||||
The author name and email address in the format `Display Name <email@address.com>`.
|
The author name and email address in the format `Display Name <email@address.com>`.
|
||||||
Defaults to the user who triggered the workflow run.
|
Defaults to the user who triggered the workflow run.
|
||||||
default: '${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>'
|
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:
|
branch:
|
||||||
description: 'The pull request branch name.'
|
description: 'The pull request branch name.'
|
||||||
default: 'create-pull-request/patch'
|
default: 'create-pull-request/patch'
|
||||||
|
@ -56,9 +59,6 @@ inputs:
|
||||||
draft:
|
draft:
|
||||||
description: 'Create a draft pull request'
|
description: 'Create a draft pull request'
|
||||||
default: false
|
default: false
|
||||||
signoff:
|
|
||||||
description: 'Add "Signed-off-by" to commit message'
|
|
||||||
default: false
|
|
||||||
outputs:
|
outputs:
|
||||||
pull-request-number:
|
pull-request-number:
|
||||||
description: 'The pull request number'
|
description: 'The pull request number'
|
||||||
|
|
|
@ -11,6 +11,7 @@ export interface Inputs {
|
||||||
commitMessage: string
|
commitMessage: string
|
||||||
committer: string
|
committer: string
|
||||||
author: string
|
author: string
|
||||||
|
signoff: boolean
|
||||||
branch: string
|
branch: string
|
||||||
branchSuffix: string
|
branchSuffix: string
|
||||||
base: string
|
base: string
|
||||||
|
@ -23,7 +24,6 @@ export interface Inputs {
|
||||||
teamReviewers: string[]
|
teamReviewers: string[]
|
||||||
milestone: number
|
milestone: number
|
||||||
draft: boolean
|
draft: boolean
|
||||||
signoff: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function createPullRequest(inputs: Inputs): Promise<void> {
|
export async function createPullRequest(inputs: Inputs): Promise<void> {
|
||||||
|
|
|
@ -11,6 +11,7 @@ async function run(): Promise<void> {
|
||||||
commitMessage: core.getInput('commit-message'),
|
commitMessage: core.getInput('commit-message'),
|
||||||
committer: core.getInput('committer'),
|
committer: core.getInput('committer'),
|
||||||
author: core.getInput('author'),
|
author: core.getInput('author'),
|
||||||
|
signoff: core.getInput('signoff') === 'true',
|
||||||
branch: core.getInput('branch'),
|
branch: core.getInput('branch'),
|
||||||
branchSuffix: core.getInput('branch-suffix'),
|
branchSuffix: core.getInput('branch-suffix'),
|
||||||
base: core.getInput('base'),
|
base: core.getInput('base'),
|
||||||
|
@ -22,8 +23,7 @@ async function run(): Promise<void> {
|
||||||
reviewers: utils.getInputAsArray('reviewers'),
|
reviewers: utils.getInputAsArray('reviewers'),
|
||||||
teamReviewers: utils.getInputAsArray('team-reviewers'),
|
teamReviewers: utils.getInputAsArray('team-reviewers'),
|
||||||
milestone: Number(core.getInput('milestone')),
|
milestone: Number(core.getInput('milestone')),
|
||||||
draft: core.getInput('draft') === 'true',
|
draft: core.getInput('draft') === 'true'
|
||||||
signoff: core.getInput('signoff') === 'true'
|
|
||||||
}
|
}
|
||||||
core.debug(`Inputs: ${inspect(inputs)}`)
|
core.debug(`Inputs: ${inspect(inputs)}`)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue