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 }}