From 9c0a3532a4765263f279caeabd7f696372ce1d1f Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 8 Sep 2023 23:01:19 +0800 Subject: Add a new column schedule_id for action_run to track (#26975) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #26971 And the UI now will display it's scheduled but not triggered by a push. 图片 --- templates/repo/actions/runs_list.tmpl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'templates/repo/actions') diff --git a/templates/repo/actions/runs_list.tmpl b/templates/repo/actions/runs_list.tmpl index 37a584079f..961dd52c62 100644 --- a/templates/repo/actions/runs_list.tmpl +++ b/templates/repo/actions/runs_list.tmpl @@ -15,11 +15,15 @@ {{- .Title -}}
- {{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}} - : {{$.locale.Tr "actions.runs.commit"}} - {{ShortSha .CommitSHA}} - {{$.locale.Tr "actions.runs.pushed_by"}} - {{.TriggerUser.GetDisplayName}} + {{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}: + {{- if .ScheduleID -}} + {{$.locale.Tr "actions.runs.scheduled"}} + {{- else -}} + {{$.locale.Tr "actions.runs.commit"}} + {{ShortSha .CommitSHA}} + {{$.locale.Tr "actions.runs.pushed_by"}} + {{.TriggerUser.GetDisplayName}} + {{- end -}}
-- cgit v1.2.3