Skip to content

The entire Merge template is used as the PR merge title #21435

Closed
@Greg-NetDuma

Description

@Greg-NetDuma

Description

I would like to use a merge template like so:

Merge pull request ${PullRequestReference} from ${HeadBranch} into ${BaseBranch}

${PullRequestTitle}

My expectation was that the first line is used as the title and the rest would be put in the PR message field, but it's not the case.

Instead the entire template is stripped of newline chars and jammed into the title field. See screenshot.

Gitea Version

1.17.2

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

Ubuntu 20.04

How are you running Gitea?

Official Docker image

Database

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions