{{ define "repo/pulls/fragments/pullHeader" }}

{{ .Pull.Title | description }} #{{ .Pull.PullId }}

{{ template "repo/pulls/fragments/pullState" .Pull.State }} opened by {{ template "user/fragments/picLink" (list .Pull.OwnerDid "size-6" (index .VouchRelationships (did .Pull.OwnerDid))) }} {{ resolve .Pull.OwnerDid }} {{ template "repo/fragments/time" .Pull.Created }} targeting {{ .Pull.TargetBranch }} {{ if not .Pull.IsPatchBased }} from {{ 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.Slug }} {{ $repoPath }}: {{ .Pull.PullSource.Branch }} {{ else }} [deleted fork]: {{ .Pull.PullSource.Branch }} {{ end }} {{ end }}
{{ if .Pull.Body }}
{{ .Pull.Body | markdown }}
{{ end }}
{{ $aturi := .Pull.AtUri }} {{ template "repo/fragments/reactions" (dict "Reactions" (index .Reactions $aturi) "UserReacted" (index .UserReacted $aturi) "ThreadAt" $aturi) }}
{{ end }}