mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
allow empty committer
This commit is contained in:
parent
cd5c7e4b8b
commit
efe7663226
1 changed files with 19 additions and 16 deletions
|
@ -156,6 +156,8 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
|||
core.startGroup('Configuring the committer and author')
|
||||
const parsedAuthor = utils.parseDisplayNameEmail(inputs.author)
|
||||
const parsedCommitter = utils.parseDisplayNameEmail(inputs.committer)
|
||||
|
||||
if (inputs.author != "" && inputs.committer != "") {
|
||||
git.setIdentityGitOptions([
|
||||
'-c',
|
||||
`author.name=${parsedAuthor.name}`,
|
||||
|
@ -172,6 +174,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
|||
core.info(
|
||||
`Configured git author as '${parsedAuthor.name} <${parsedAuthor.email}>'`
|
||||
)
|
||||
}
|
||||
core.endGroup()
|
||||
|
||||
// Create or update the pull request branch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue