-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
type/enhancementAn improvement of existing functionalityAn improvement of existing functionality
Milestone
Description
- Gitea version (or commit ref): 1.11.0
- Git version: 2.24.1
- Operating system: Linux (Alpine)
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes: https://try.gitea.io/ppmathis/test/pulls/1
- No
- Not relevant
Description
When the head branch of a pull request in either state gets deleted, the pull request no longer exposes the original branch name. This is directly related to #9158, which requested tracking the ref to the tip of the deleted branch and a working commit/changes view.
I would like to suggest to also expose the name of the branch which got deleted through both UI and API instead of just showing from deleted into <target branch>
. The name of the branch can usually be accessed as head.ref
in the API, however the whole head
property is null
as soon as the branch got deleted.
Screenshots
PR with correct branch name before branch deletion
PR with missing branch name after branch deletion
Metadata
Metadata
Assignees
Labels
type/enhancementAn improvement of existing functionalityAn improvement of existing functionality