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

{{ .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 }}
{{ i $icon "w-4 h-4 mr-1.5 text-white" }} {{ .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 }}