1- {{/* TODO: RemoveIssueRef: the Issue.Ref will be removed in 1.24 or 1.25 if no end user really uses it.
1+ {{/* TODO: RemoveIssueRef: the Issue.Ref will be removed in 1.24 or 1.25 if no end user really needs it or there could be better alternative then.
2+ PR: https://github.com/go-gitea/gitea/pull/32744
3+
24The Issue.Ref was added by Add possibility to record branch or tag information in an issue (#780)
35After 8 years, this "branch selector" does nothing more than saving the branch/tag name into database and displays it.
4- So there is a plan to remove it:
5- * Only hide it from the UI in 1.23, and collect feedbacks.
6- * If nobody complains and explains how to use it, remove code and drop database column in next release.
6+
7+ There are still users using it:
8+ * @didim99: it is a really useful feature to specify a branch in which issue found.
9+
10+ Still needs to figure out:
11+ * Could the "recording branch/tag name" be replaced by other approaches?
12+ * Write the branch name in the issue title/body then it will still be displayed, eg: `[bug] (fix/ui-broken-bug) there is a bug ....`
13+ * Is "GitHub-like development sidebar (`#31899`)" good enough (or better) for your usage?
714*/}}
815{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
916<input id="ref_selector" name="ref" type="hidden" value="{{.Reference}}">
@@ -36,7 +43,7 @@ So there is a plan to remove it:
3643 {{range .Branches}}
3744 <div class="item" data-id="refs/heads/{{.}}" data-name="{{.}}" data-id-selector="#ref_selector" title="{{.}}">{{.}}</div>
3845 {{else}}
39- <div class="item">{{ctx.Locale.Tr "no_results_found"}}</div>
46+ <div class="item disabled ">{{ctx.Locale.Tr "no_results_found"}}</div>
4047 {{end}}
4148 </div>
4249 <div id="tag-list" class="scrolling menu reference-list-menu tw-hidden">
@@ -46,7 +53,7 @@ So there is a plan to remove it:
4653 {{range .Tags}}
4754 <div class="item" data-id="refs/tags/{{.}}" data-name="tags/{{.}}" data-id-selector="#ref_selector">{{.}}</div>
4855 {{else}}
49- <div class="item">{{ctx.Locale.Tr "no_results_found"}}</div>
56+ <div class="item disabled ">{{ctx.Locale.Tr "no_results_found"}}</div>
5057 {{end}}
5158 </div>
5259 </div>
0 commit comments