Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation: message color #1094

Open
hikouki-gumo opened this issue May 17, 2024 · 3 comments
Open

Annotation: message color #1094

hikouki-gumo opened this issue May 17, 2024 · 3 comments
Assignees

Comments

@hikouki-gumo
Copy link

When a test failed, only annotation title is colored. Message is not and is represented as ANSI code. Is it a bug?

ServiceInteg - Policies should be empty // title, this line is colored correctly
[31m- Policies should be empty[0m
    [31m Result was false[0m
    [1maccountPolicy[0m[1m[33m != Seq.empty[0m[0m[1m[0m
    [2maccountPolicy = [0mNil
@mikepenz
Copy link
Owner

Good day.

The visualisation is controlled by GitHub so that appears correct.

Related the content of the message. The action itself parses your junit report and shouldn't change the contents. Please have a look at your report and see if it already contains the details as shown above.

@mikepenz mikepenz self-assigned this May 17, 2024
@hikouki-gumo
Copy link
Author

hikouki-gumo commented May 17, 2024

Hi mikepenz, the content is correct, it contains ANSI code for colorize. Github actions log already supports color (other steps in my CI are colored correctly), so I suppose the log should be colored but it's not.

🚀 Publish results
  ℹ️ - ci/test - 136 tests run, 135 passed, 0 skipped, 1 failed.
🧪 - Integ.scala | [31m- Policies should be empty[0m

Btw if you know any workaround, please let me know.

@mikepenz
Copy link
Owner

That's beyond my knowledge. I doubt that GitHub supports ansi codes for colorisation for markdown text it displays in annotations.
At least I've never read anything referencing that.

Here is the code which annotates: https://github.com/mikepenz/action-junit-report/blob/main/src/annotator.ts#L47-L52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants