Skip to content

Commit

Permalink
Disable target branch switching in pull requests
Browse files Browse the repository at this point in the history
* This is leading to mistakes merging main in to the release branch.
* Files Changed does not update correctly when switching.
  • Loading branch information
brechtvl committed Feb 20, 2023
1 parent 14ccbde commit b90c6b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/repo/issue/view_title.tmpl
Expand Up @@ -62,6 +62,8 @@
</span>
{{end}}
<span id="pull-desc-edit gt-hidden">
<!-- BLENDER: disable branch switching because accidentally merging main into release branch is too easy -->
<div class="gt-hidden">
<div class="ui floating filter dropdown">
<div class="ui basic small button">
<span class="text">{{.locale.Tr "repo.pulls.compare_compare"}}: {{$.HeadTarget}}</span>
Expand Down Expand Up @@ -89,6 +91,7 @@
</div>
</div>
</div>
</div>
</span>
{{end}}
{{else}}
Expand Down

0 comments on commit b90c6b9

Please sign in to comment.