From a67171af37578303c0f2c95ab4088a4cd82082f3 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Mon, 5 Oct 2026 23:04:30 -0700 Subject: [PATCH] fix: make "edit pr title & target branch" get correct branch (#39612) (#39621) Backport #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: wxiaoguang 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"}}