Skip to content

Commit c997e90

Browse files
GiteaBotlunny
andauthored
Fix empty action run title (#28113) (#28148)
Backport #28113 by @lunny Fix #27901 Co-authored-by: Lunny Xiao <[email protected]>
1 parent ffab076 commit c997e90

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3527,6 +3527,7 @@ runs.actors_no_select = All actors
35273527
runs.status_no_select = All status
35283528
runs.no_results = No results matched.
35293529
runs.no_runs = The workflow has no runs yet.
3530+
runs.empty_commit_message = (empty commit message)
35303531
35313532
workflow.disable = Disable Workflow
35323533
workflow.disable_success = Workflow '%s' disabled successfully.

templates/repo/actions/runs_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
<div class="flex-item-main">
1414
<a class="flex-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
15-
{{- .Title -}}
15+
{{if .Title}}{{.Title}}{{else}}{{ctx.Locale.Tr "actions.runs.empty_commit_message"}}{{end}}
1616
</a>
1717
<div class="flex-item-body">
1818
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>:

0 commit comments

Comments
 (0)