Skip to content

Pull request merge should not include self-reference in timeline #36488

@silverwind

Description

@silverwind

Description

When a pull request is merged with a commit title that includes the pr number (which is added automatically when merged on the UI), the UI shows a "referenced this issue from a commit" timeline entry after the merge:

Image

This self-reference is useless and GitHub also does not render it. We should omit rendering it if the PR number is the same as the ID in the reference, so that such a merge creates only one timeline entry.

Gitea Version

main

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions