{{$data := $.PullMergeBoxData}} {{if $data.ShowMergeBox}}
{{svg "octicon-git-merge" 40}}
{{if $data.ShowStatusCheck}} {{template "repo/issue/view_content/pull_merge_status_checks" (dict "StatusCheckData" $data.StatusCheckData)}} {{end}} {{if $data.ClosedInfoTitle}}

{{$data.ClosedInfoTitle}}

{{$data.ClosedInfoBody}}
{{if $data.IsPullBranchDeletable}}
{{end}}
{{end}} {{range $infoSection := $data.InfoSections}} {{if $infoSection.InfoItems}}
{{range $infoItem := $infoSection.InfoItems}}
{{$infoItem.SvgIconHTML}} {{$infoItem.InfoHTML}}
{{if $infoItem.ListItems}}
    {{/* align with the info icon and text */}} {{range $listItem := $infoItem.ListItems}}
  • {{$listItem}}
  • {{end}}
{{end}} {{end}}
{{end}} {{end}} {{if $data.ShowUpdatePullInfo}}
{{template "repo/issue/view_content/update_branch_by_merge" (dict "MergeBoxData" $data "IssueLink" $.Issue.Link)}}
{{end}} {{if $.IsPullWorkInProgress}}
{{svg "octicon-x"}} {{ctx.Locale.Tr "repo.pulls.cannot_merge_work_in_progress"}}
{{if or .HasIssuesOrPullsWritePermission .IsIssuePoster}} {{end}}
{{end}} {{if $data.MergeFormProps}} {{/* The merge form is a Vue component. After mounted, it has a button for choosing merge style, so make it have min-height to avoid layout shifting */}}
{{end}} {{if $data.ShowPullCommands}}
{{template "repo/issue/view_content/pull_merge_instruction" dict "PullRequest" .Issue.PullRequest "MergeBoxData" $data}}
{{end}}
{{end}}