From 699461375b5e6121eb9c226224f55e09f4f21a67 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Wed, 15 Oct 2025 20:21:07 +0900 Subject: [PATCH] appview/pulls: add link to PR source branch Change-Id: lxmtmnwovxxnmkvyxtyslqwurvpptmml Signed-off-by: Seongmin Lee --- .../repo/pulls/fragments/pullHeader.html | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/appview/pages/templates/repo/pulls/fragments/pullHeader.html b/appview/pages/templates/repo/pulls/fragments/pullHeader.html index 93c1c77b..47975e59 100644 --- a/appview/pages/templates/repo/pulls/fragments/pullHeader.html +++ b/appview/pages/templates/repo/pulls/fragments/pullHeader.html @@ -42,15 +42,17 @@ {{ if not .Pull.IsPatchBased }} from - {{ if .Pull.IsForkBased }} - {{ if .Pull.PullSource.Repo }} - {{ $owner := resolve .Pull.PullSource.Repo.Did }} - {{ $owner }}/{{ .Pull.PullSource.Repo.Name }}: - {{- else -}} - [deleted fork] - {{- end -}} - {{- end -}} - {{- .Pull.PullSource.Branch -}} + {{ if not .Pull.IsForkBased }} + {{ $repoPath := .RepoInfo.FullName }} + {{ .Pull.PullSource.Branch }} + {{ else if .Pull.PullSource.Repo }} + {{ $repoPath := print (resolve .Pull.PullSource.Repo.Did) "/" .Pull.PullSource.Repo.Name }} + {{ $repoPath }}: + {{ .Pull.PullSource.Branch }} + {{ else }} + [deleted fork]: + {{ .Pull.PullSource.Branch }} + {{ end }} {{ end }} -- 2.43.0