{{define "content"}}

{{.Data.Repo.OwnerName}}/{{.Data.Repo.Name}} / pull #{{.Data.Pull.Number}}

{{.Data.Pull.Title}}

{{.Data.Pull.State}} · {{.Data.Pull.HeadBranch}} → {{.Data.Pull.BaseBranch}} · opened by {{.Data.Pull.AuthorName}} {{timeago .Data.Pull.CreatedAt}} {{if .Data.CanMerge}} ·

{{end}} {{if .Data.CanClose}} ·
{{if eq .Data.Pull.State "open"}} {{else}}{{end}}
{{end}}

{{with .Data.CI}}

CI: {{.State}} {{if .URL}}{{if .Description}}{{.Description}}{{else}}details{{end}}{{else}}{{.Description}}{{end}}

{{end}} {{if .Data.CIBlocked}}

A passing CI check is required before this pull request can be merged.

{{end}} {{if eq .Data.Pull.State "merged"}}

Merged as {{short .Data.Pull.MergeCommit}}.

{{end}}

{{.Data.Pull.AuthorName}} · {{timeago .Data.Pull.CreatedAt}}

{{.Data.BodyHTML}}
{{if .Data.Attachments}}

Attachments

{{end}}

Changes

{{if .Data.DiffError}}

{{.Data.DiffError}}

{{else if .Data.DiffLines}}
{{range .Data.DiffLines}}{{.Text}}{{end}}
{{if .Data.Truncated}}

Diff truncated at 2 MiB.

{{end}} {{else}}

No changes between these commits.

{{end}}
{{range .Data.Comments}}

{{.AuthorName}} · {{timeago .CreatedAt}}

{{.BodyHTML}}
{{else}}

No comments yet.

{{end}}
{{if .Data.CanComment}}

Add a comment

{{end}} {{end}}