feat!: remove the issue branch/tag reference - #39114
Conversation
The issue sidebar's branch selector only ever wrote a ref name into the database and displayed it back. It offered no indication of what picking a branch would do, and eight years on there is still no behaviour attached to it beyond one narrow close-via-commit exception. Removing it also drops a branch listing and a tag query from every issue view and new-issue render, since the PR target-branch dropdown is now the only consumer of the branch list. The comment type for past ref changes is kept so existing timelines still render. BREAKING: The `ref` field is removed from the issue API (`Issue`, `CreateIssueOption`, `EditIssueOption`) and from issue webhook payloads. The `ref` key in issue templates is ignored. With `CloseIssuesViaCommitInAnyBranch` disabled, an issue that carried a ref is now closed by commits on the default branch rather than on that ref. Assisted-by: Claude Code:claude-opus-5
wxiaoguang
left a comment
There was a problem hiding this comment.
Sorry, it can't be removed at the moment.
There are still many users using it. Will provide you proofs.
IIRC there are more, just not worth to pick all them out. |
|
The code is full of I would at least move it to a less prominent position in the sidebar, e.g. not the first item. |
I think so, the comment needs to be updated, since we know there are real users. |
|
In my eyes the feature is of dubious usefulness. You can link PRs to an issue, and a branch can fix more than one issue. I'd rather drop it and dissatisfy 0.01% of users. |
I agree with you and that's why I ever proposed to remove it. But end users have other opinions. (more: #39062 (comment)) |
|
We could have an option to disable it by default in v28 |
No fitting semantic commit type for a pure removal, I set
Might actually work. I'm only concerned about having a clean issue UI without this useless dropdown. |
The issue sidebar's branch selector only stored a ref name and displayed it back. Nothing else acts on it, and it has been marked for removal since 1.24 in #32744.
Breaking is unavoidable: the column backing these fields goes away, so keeping them would mean returning an empty
refforever.refis removed from the issue API (Issue,CreateIssueOption,EditIssueOption) and from issue webhook payloads. There is no replacement, record the branch in the issue title or body instead.refin issue templates is ignored, existing templates keep working.CloseIssuesViaCommitInAnyBranchdisabled, an issue that had a ref is now closed by default-branch commits instead of commits on that ref.issue.refcolumn.