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:
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
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:
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