Skip to content

[Feature] Expose name of deleted PR branches #10347

@ppmathis

Description

@ppmathis

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

before branch deletion

PR with missing branch name after branch deletion

after branch deletion

Metadata

Metadata

Assignees

Labels

type/enhancementAn improvement of existing functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions