2019-06-30 09:57:59 +02:00
|
|
|
{{if $.LatestCommitStatus}}
|
2021-04-11 05:46:37 +02:00
|
|
|
{{if not $.Issue.PullRequest.HasMerged}}
|
|
|
|
<div class="ui top attached header">
|
2024-02-19 21:48:17 +01:00
|
|
|
{{if or (eq .LatestCommitStatus.State "pending") (.MissingRequiredChecks)}}
|
2023-09-25 15:15:51 +02:00
|
|
|
{{ctx.Locale.Tr "repo.pulls.status_checking"}}
|
2021-04-11 05:46:37 +02:00
|
|
|
{{else if eq .LatestCommitStatus.State "success"}}
|
2023-09-25 15:15:51 +02:00
|
|
|
{{ctx.Locale.Tr "repo.pulls.status_checks_success"}}
|
2021-04-11 05:46:37 +02:00
|
|
|
{{else if eq .LatestCommitStatus.State "warning"}}
|
2023-09-25 15:15:51 +02:00
|
|
|
{{ctx.Locale.Tr "repo.pulls.status_checks_warning"}}
|
2021-04-11 05:46:37 +02:00
|
|
|
{{else if eq .LatestCommitStatus.State "failure"}}
|
2023-09-25 15:15:51 +02:00
|
|
|
{{ctx.Locale.Tr "repo.pulls.status_checks_failure"}}
|
2021-04-11 05:46:37 +02:00
|
|
|
{{else if eq .LatestCommitStatus.State "error"}}
|
2023-09-25 15:15:51 +02:00
|
|
|
{{ctx.Locale.Tr "repo.pulls.status_checks_error"}}
|
2021-04-11 05:46:37 +02:00
|
|
|
{{else}}
|
2023-09-25 15:15:51 +02:00
|
|
|
{{ctx.Locale.Tr "repo.pulls.status_checking"}}
|
2021-04-11 05:46:37 +02:00
|
|
|
{{end}}
|
2024-02-19 21:48:17 +01:00
|
|
|
</div>
|
2021-04-11 05:46:37 +02:00
|
|
|
{{end}}
|
2019-06-30 09:57:59 +02:00
|
|
|
|
2021-04-11 05:46:37 +02:00
|
|
|
{{range $.LatestCommitStatuses}}
|
2022-10-28 15:49:42 +02:00
|
|
|
<div class="ui attached segment pr-status">
|
|
|
|
{{template "repo/commit_status" .}}
|
|
|
|
<div class="status-context">
|
|
|
|
<span>{{.Context}} <span class="text grey">{{.Description}}</span></span>
|
|
|
|
<div class="ui status-details">
|
|
|
|
{{if $.is_context_required}}
|
2023-09-25 15:15:51 +02:00
|
|
|
{{if (call $.is_context_required .Context)}}<div class="ui label">{{ctx.Locale.Tr "repo.pulls.status_checks_requested"}}</div>{{end}}
|
2022-10-28 15:49:42 +02:00
|
|
|
{{end}}
|
2023-09-25 15:15:51 +02:00
|
|
|
<span>{{if .TargetURL}}<a href="{{.TargetURL}}">{{ctx.Locale.Tr "repo.pulls.status_checks_details"}}</a>{{end}}</span>
|
2022-10-28 15:49:42 +02:00
|
|
|
</div>
|
2021-04-11 05:46:37 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-02-19 21:48:17 +01:00
|
|
|
{{range .MissingRequiredChecks}}
|
|
|
|
<div class="ui attached segment pr-status">
|
|
|
|
{{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
|
|
|
|
<div class="status-context">
|
|
|
|
<span>{{.}}</span>
|
|
|
|
<div class="ui status-details">
|
|
|
|
<div class="ui label">{{ctx.Locale.Tr "repo.pulls.status_checks_requested"}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-09-18 07:39:45 +02:00
|
|
|
{{end}}
|