Skip to content

Automatically generated commit message when merging pull request is not clear #9898

@my1e5

Description

@my1e5

Description

When merging a pull request, Gitea automatically generates text for the commit message. It has the following format:

TITLE: Merge pull request 'pull-request-name' (#pull-request-number) from branch into branch

CONTENT: Reviewed-on: url-of-pull-request

However, I've noticed a potential bug with the way it constructs the branch names. The first branch name is structured like:

organisation-name/branch-name

when I think it should be

organisation-name/repo-name/branch-name OR just branch-name

See the try.gitea example repo and the screenshots below for examples of this.

Screenshots

Organisation: my1e5_test
Repo: Merge-Pull-Request
Branch: feature/my_branch

I use a folder structure for my branch name. I am merging into master.

image

Notice how it says "from my1e5_test/feature/my_branch into master".

In my opinion this is not accurate. It should be just "from feature/my_branch into master" OR it should be "from my1e5_test/Merge-Pull-Request/feature/my_branch into master".

Missing out the repo name, but having the organisation name, is strange IMO.

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