{{ define "repo/pulls/fragments/pullComposeHost" }}
{{ if .PrefillError }}
{{ i "triangle-alert" "w-4 h-4 flex-shrink-0" }} {{ .PrefillError }}
{{ end }} {{ $hasCommits := and .Comparison .Comparison.FormatPatch }} {{ $hasDiff := false }} {{ if .Diff }}{{ if .Diff.Diff }}{{ $hasDiff = true }}{{ end }}{{ end }} {{ $showDetails := and (or $hasCommits $hasDiff) (not .IsStacked) }}
{{ template "pullComposeSectionNumber" 1 }}

Source

{{ template "repo/pulls/fragments/pullStepSource" . }}
{{ if $showDetails }}
{{ else }}
{{ end }}
{{ template "pullComposeSectionNumber" 2 }}

Review

{{ template "repo/pulls/fragments/pullStepReview" . }}
{{ if $showDetails }}
{{ template "pullComposeSectionNumber" 3 }}

Details

{{ template "repo/pulls/fragments/pullStepDetails" . }}
{{ end }}
{{ end }} {{ define "pullComposeSectionNumber" }} {{ . }} {{ end }}