Skip to content

Commit f0d576b

Browse files
committed
Add orange color on warnings marker
1 parent d28c08b commit f0d576b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/gha_logs.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ async fn process_logs(
154154
scroll-margin-bottom: 15vh;
155155
color: #e5534b;
156156
}}
157+
.warning-marker {{
158+
color: #c69026;
159+
}}
157160
</style>
158161
<script type="module" nonce="{nonce}">
159162
import {{ AnsiUp }} from '{ANSI_UP_URL}'
@@ -180,6 +183,11 @@ async fn process_logs(
180183
html = html.replace(/##\[error\]/g, () =>
181184
`<a id="error-${{++errorCounter}}" class="error-marker">##[error]</a>`
182185
);
186+
187+
// 4.b Add a span around every "##[warning]" string
188+
html = html.replace(/##\[warning\]/g, () =>
189+
`<span class="warning-marker">##[warning]</span>`
190+
);
183191
184192
// 5. Add the html to the DOM
185193
var cdiv = document.getElementById("console");

0 commit comments

Comments
 (0)