mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-23 05:42:33 +09:00
Action runs, jobs and steps have 8 statuses but the UI only showed 5
(from the commit status api) for the latter two. Align all 8 to GitHub
as closely as possible:
- waiting — `octicon-circle` (hollow circle), gray
- blocked — `octicon-blocked` (slashed circle), yellow
- running — `gitea-running` (rotating spinner), yellow
- cancelled — `octicon-stop` (gray), was `octicon-x` (red)
Descriptions also aligned with GitHub:
- "Has started running" → "In progress"
- "Has been cancelled" → "Cancelled after {dur}"
- "Has been skipped" → "Skipped"
Fixes: https://github.com/go-gitea/gitea/issues/32228
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Nicolas <bircni@icloud.com>
39 lines
1.6 KiB
Handlebars
39 lines
1.6 KiB
Handlebars
{{/* Template Attributes:
|
|
* CommitStatuses: all commit status elements
|
|
* StatusCheckData: optional, additional status check data, see backend pullCommitStatusCheckData struct
|
|
*/}}
|
|
{{$statusCheckData := $.StatusCheckData}}
|
|
{{$commitActionsStatuses := ctx.ActionsUtils.CommitStatusesToActionsStatuses $.CommitStatuses}}
|
|
{{range $cs := $.CommitStatuses}}
|
|
<div class="item commit-status-item">
|
|
<div class="flex-text-block">
|
|
{{$actionStatus := $commitActionsStatuses.IconStatus $cs}}
|
|
{{if $actionStatus}}
|
|
{{template "repo/icons/action_status" (dict "Status" $actionStatus "Size" 18 "ClassName" "commit-status icon")}}
|
|
{{else}}
|
|
{{template "repo/icons/commit_status" $cs}}
|
|
{{end}}
|
|
<div class="status-context gt-ellipsis">
|
|
{{$cs.Context}} <span class="tw-text-text-light-2">{{$cs.Description}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="status-details">
|
|
{{if and $statusCheckData $statusCheckData.IsContextRequired}}
|
|
{{if (call $statusCheckData.IsContextRequired $cs.Context)}}
|
|
<div class="ui label">{{ctx.Locale.Tr "repo.pulls.status_checks_requested"}}</div>
|
|
{{end}}
|
|
{{end}}
|
|
{{if $cs.TargetURL}}<a href="{{$cs.TargetURL}}">{{ctx.Locale.Tr "repo.pulls.status_checks_details"}}</a>{{end}}
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{range $missingCheck := $statusCheckData.MissingRequiredChecks}}
|
|
<div class="item commit-status-item">
|
|
<div class="flex-text-block">
|
|
{{svg "octicon-dot-fill" 16 "commit-status icon tw-text-yellow"}}
|
|
<div class="status-context gt-ellipsis">{{$missingCheck}}</div>
|
|
</div>
|
|
<div class="ui label">{{ctx.Locale.Tr "repo.pulls.status_checks_requested"}}</div>
|
|
</div>
|
|
{{end}}
|