|
8 | 8 | <div class="ui divider"></div>
|
9 | 9 | <div class="review-item">
|
10 | 10 | <span class="type-icon text {{if eq .Type 1}}green
|
11 |
| - {{else if eq .Type 2}}grey |
12 |
| - {{else if eq .Type 3}}red |
13 |
| - {{else}}grey{{end}}"> |
| 11 | + {{- else if eq .Type 2}}grey |
| 12 | + {{- else if eq .Type 3}}red |
| 13 | + {{- else}}grey{{end}}"> |
14 | 14 | {{svg (printf "octicon-%s" .Type.Icon) 16}}
|
15 | 15 | </span>
|
16 | 16 | {{if .Stale}}
|
|
40 | 40 | {{end}}
|
41 | 41 | <div class="comment merge box">
|
42 | 42 | <a class="avatar text
|
43 |
| - {{if .Issue.PullRequest.HasMerged}}purple |
44 |
| - {{else if .Issue.IsClosed}}grey |
45 |
| - {{else if .IsPullWorkInProgress}}grey |
46 |
| - {{else if .IsFilesConflicted}}grey |
47 |
| - {{else if .IsPullRequestBroken}}red |
48 |
| - {{else if .IsBlockedByApprovals}}red |
49 |
| - {{else if .IsBlockedByRejection}}red |
50 |
| - {{else if and .EnableStatusCheck (or .RequiredStatusCheckState.IsFailure .RequiredStatusCheckState.IsError)}}red |
51 |
| - {{else if and .EnableStatusCheck (or .RequiredStatusCheckState.IsPending .RequiredStatusCheckState.IsWarning)}}yellow |
52 |
| - {{else if and .RequireSigned (not .WillSign)}}}red |
53 |
| - {{else if .Issue.PullRequest.IsChecking}}yellow |
54 |
| - {{else if .Issue.PullRequest.CanAutoMerge}}green |
55 |
| - {{else}}red{{end}}">{{svg "octicon-git-merge" 32}}</a> |
| 43 | + {{- if .Issue.PullRequest.HasMerged}}purple |
| 44 | + {{- else if .Issue.IsClosed}}grey |
| 45 | + {{- else if .IsPullWorkInProgress}}grey |
| 46 | + {{- else if .IsFilesConflicted}}grey |
| 47 | + {{- else if .IsPullRequestBroken}}red |
| 48 | + {{- else if .IsBlockedByApprovals}}red |
| 49 | + {{- else if .IsBlockedByRejection}}red |
| 50 | + {{- else if and .EnableStatusCheck (or .RequiredStatusCheckState.IsFailure .RequiredStatusCheckState.IsError)}}red |
| 51 | + {{- else if and .EnableStatusCheck (or .RequiredStatusCheckState.IsPending .RequiredStatusCheckState.IsWarning)}}yellow |
| 52 | + {{- else if and .RequireSigned (not .WillSign)}}}red |
| 53 | + {{- else if .Issue.PullRequest.IsChecking}}yellow |
| 54 | + {{- else if .Issue.PullRequest.CanAutoMerge}}green |
| 55 | + {{- else}}red{{end}}">{{svg "octicon-git-merge" 32}}</a> |
56 | 56 | <div class="content">
|
57 | 57 | {{template "repo/pulls/status" .}}
|
58 | 58 | <div class="ui {{if not $.LatestCommitStatus}}top attached header{{else}}attached merge-section segment{{end}}">
|
|
0 commit comments