From 8d5c2a173c183dd7961fd54ec19aa01cee7f8919 Mon Sep 17 00:00:00 2001 From: Robert Wolff Date: Thu, 28 May 2026 12:28:32 +0200 Subject: [PATCH] fix: do not allow branch selection on issues / PRs for archived repos --- .../issue/view_content/sidebar/branch_selector_field.tmpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/repo/issue/view_content/sidebar/branch_selector_field.tmpl b/templates/repo/issue/view_content/sidebar/branch_selector_field.tmpl index 373be61026..d865a407aa 100644 --- a/templates/repo/issue/view_content/sidebar/branch_selector_field.tmpl +++ b/templates/repo/issue/view_content/sidebar/branch_selector_field.tmpl @@ -1,13 +1,14 @@ {{if and (not .Issue.IsPull) (not .PageIsComparePull)}} +{{$hasIssuesOrPullsWritePermission := and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} - +
{{/* TODO: share this branch selector dropdown with the same in repo page */}} -