Improve severity labels in Actions logs and tweak colors (#36993)

Add support for error, warning, notice, and debug log commands with bold
label prefixes and colored backgrounds matching GitHub's style. Parse
both `##[cmd]` and `::cmd args::` formats.

Also improved the severity colors globally and added a devtest page for
these.

---------

Co-authored-by: Claude (claude-opus-4-6) <noreply@anthropic.com>
This commit is contained in:
silverwind
2026-03-26 11:18:50 +01:00
committed by GitHub
parent 9583e1a65c
commit d5a89805d9
8 changed files with 168 additions and 58 deletions

View File

@@ -162,20 +162,20 @@ gitea-theme-meta-info {
--color-diff-removed-row-border: #f1c0c0;
--color-diff-removed-word-bg: #fdb8c0;
--color-diff-inactive: #f0f2f4;
--color-error-border: #e0b4b4;
--color-error-bg: #fff6f6;
--color-error-bg-active: #fbb;
--color-error-bg-hover: #fdd;
--color-error-text: #9f3a38;
--color-success-border: #a3c293;
--color-success-bg: #fcfff5;
--color-success-text: #2c662d;
--color-warning-border: #c9ba9b;
--color-warning-bg: #fffaf3;
--color-warning-text: #573a08;
--color-info-border: #a9d5de;
--color-info-bg: #f8ffff;
--color-info-text: #276f86;
--color-error-border: #d63333;
--color-error-bg: #ffebeb;
--color-error-bg-active: #fdd;
--color-error-bg-hover: #fee;
--color-error-text: #8a3231;
--color-success-border: #49842b;
--color-success-bg: #eef6e4;
--color-success-text: #2f6e30;
--color-warning-border: #bf8700;
--color-warning-bg: #fff8e1;
--color-warning-text: #744500;
--color-info-border: #2d8fa8;
--color-info-bg: #e8f4fd;
--color-info-text: #216078;
--color-red-badge: #db2828;
--color-red-badge-bg: #db28281a;
--color-red-badge-hover-bg: #db28284d;