mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-23 05:42:33 +09:00
Add summary to action runs view (#36883)
When opening a Actions run without a job in the path (`/actions/runs/{run}`),
show a run summary.
---------
Signed-off-by: Nicolas <bircni@icloud.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -322,6 +322,10 @@ class RelativeTime extends HTMLElement {
|
||||
return this.getAttribute('prefix') ?? (this.format === 'datetime' ? '' : 'on');
|
||||
}
|
||||
|
||||
set prefix(v: string) {
|
||||
this.setAttribute('prefix', v);
|
||||
}
|
||||
|
||||
get #thresholdMs(): number {
|
||||
const ms = parseDurationMs(this.getAttribute('threshold') ?? '');
|
||||
return ms >= 0 ? ms : 30 * 86400000;
|
||||
@@ -355,6 +359,10 @@ class RelativeTime extends HTMLElement {
|
||||
return this.getAttribute('datetime') || '';
|
||||
}
|
||||
|
||||
set datetime(v: string) {
|
||||
this.setAttribute('datetime', v);
|
||||
}
|
||||
|
||||
get date(): Date | null {
|
||||
const parsed = Date.parse(this.datetime);
|
||||
return Number.isNaN(parsed) ? null : new Date(parsed);
|
||||
|
||||
Reference in New Issue
Block a user