Improve severity labels in Actions logs and tweak colors#36993
Improve severity labels in Actions logs and tweak colors#36993wxiaoguang merged 10 commits intogo-gitea:mainfrom
Conversation
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. Update error/warning theme colors to match GitHub's hue. Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds richer parsing and rendering of GitHub Actions “severity” log commands so Actions job logs can display consistent labeled lines (and styling hooks) for error/warning/notice/debug.
Changes:
- Extend Actions log command parsing to recognize
##[severity]and raw::severity ...::formats for warning/notice/debug (in addition to error). - Render severity lines with a bold label prefix (
Error:,Warning:, etc.) and add per-line CSS classes for styling. - Tweak theme error/warning palette variables and update frontend unit tests for the new HTML structure.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| web_src/js/components/ActionRunView.ts | Adds parsing for ::severity ...:: commands and injects severity label spans into rendered log messages. |
| web_src/js/components/ActionRunView.test.ts | Updates expected HTML output and adds coverage for new severity parsing/rendering cases (partial). |
| web_src/js/components/ActionRunJobView.vue | Adds per-line class names for severity and introduces new CSS rules for label styling and some severity visuals. |
| web_src/css/themes/theme-gitea-light.css | Adjusts global --color-error-* and --color-warning-* theme variables. |
| web_src/css/themes/theme-gitea-dark.css | Adjusts global --color-error-* and --color-warning-* theme variables. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
Error, success, and info backgrounds and borders were too faint compared to warning. Make them similarly visible. Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
Use filter: saturate(2) for message headers instead of separate color overrides. Match perceived lightness across all severity text colors. Use Tailwind classes in devtest page. Increase saturation of light theme severity backgrounds and borders. Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
…ateElement` Move the saturate(2) filter from base.css to message.css to cover all message types and remove the now-obsolete partial rule. Add color: inherit for consistency. Use document.createElement instead of createElementFromAttrs with null attrs. Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
|
You can see that if our framework is designed correctly (I made the changes to |
|
Yes, it's clean-ish. Still I run Claude with max effort and always |
|
Looks completely fine to me on that screenshot. Which color are you referring to? The only wrong think i spot there is the double top border. |
|
On my screen the hue of text and background seems to match, is that what you mean? The background is more intense, but I think that's fine. If you want, I can make exact color copies from Primer (https://primer.style/product/components/banner/guidelines/#variant). |
|
The colors defined in https://primer.style/product/components/banner/guidelines/#variant are indeed much better and clearer |



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.