{{ define "title" }} {{ $oneIndexedRound := add .Round 1 }} patch of {{ .Pull.Title }} · round #{{ $oneIndexedRound }} · pull #{{ .Pull.PullId }} · {{ .RepoInfo.FullName }} {{ end }} {{ define "content" }} {{ $oneIndexedRound := add .Round 1 }} {{ $stat := .Diff.Stat }}
back round #{{ $oneIndexedRound }}

{{ .Pull.Title }} #{{ .Pull.PullId }}

{{ $bgColor := "bg-gray-800" }} {{ $icon := "ban" }} {{ if .Pull.State.IsOpen }} {{ $bgColor = "bg-green-600" }} {{ $icon = "git-pull-request" }} {{ else if .Pull.State.IsMerged }} {{ $bgColor = "bg-purple-600" }} {{ $icon = "git-merge" }} {{ end }}
{{ .Pull.State.String }}
opened by {{ $owner := index $.DidHandleMap .Pull.OwnerDid }} {{ $owner }} targeting branch {{ .Pull.TargetBranch }}
{{ if .Pull.Body }}
{{ .Pull.Body | markdown }}
{{ end }}

Changed files {{ range .Diff.Diff }} {{ end }}
{{ template "fragments/diff" (list .RepoInfo.FullName .Diff) }}
{{ end }}