From b1726adebbea6e3ede5a1065d073beaf522ee95e Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 6 Oct 2026 04:29:33 +0800 Subject: [PATCH] fix: make "edit pr title & target branch" get correct branch (#39612) * Fix #39610 * Regression of #39262 Also, the old code is very fragile: `#branch_target` is from translation string, so refactored it together --------- Co-authored-by: silverwind --- templates/repo/issue/view_title.tmpl | 2 +- tests/e2e/pr-create.test.ts | 34 ++++++++++++++++++++++++---- web_src/js/features/repo-issue.ts | 8 ++++--- 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index d6df337c28f..d6b2fd9545c 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -103,7 +103,7 @@ {{svg "octicon-arrow-right"}}