-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
🐛 Github Reporter not generating annotations correctly #3148
Comments
Yeah I have been trying to understand why it hasn't been working properly, and I can't figure out why |
I think |
Tested, it's also working for me! Thanks for the fix. I think if Github annotations are going to be generated it might be better to force colours off as opposed to setting a flag to explicitly turn them off, but i'm happy to leave that as just a note and close this issue. |
I completely agree with you. One thing is turning colours off also means that the colours for summary details/total are also off: biome/crates/biome_cli/src/reporter/terminal.rs Lines 88 to 141 in fc9b1eb
This is not a big deal, but the ideal fix for this should be only switching off colours for the "annotation" part. I'd like to reopen this as a reminder. Either forcing colours off entirely in this mode, or only keeping annotataions colorless is an acceptable fix. |
I think removing colours based on the reporter is the way to go. Keeping annotation colourless feels too complex, and I don't envision future cases where we need such a sophisticated feature. |
Environment information
Commands are being run in a
Warpbuild
Github Actions runner (specificallywarp-ubuntu-latest-x64-2x
), but i've tested and this happens onubuntu-latest
tooWhat happened?
yarn biome ci --reporter=github
in an actions workflow/stepExpected result
Expected: Annotation output should turn into an annotation in the Github Actions execution logs/
Files Changed
viewActual: The annotation is output as a string and nothing happens. i.e. I see this in the console:
Instead of this, and all the other annotations stuff:
I can confirm that the annotation format is correct - if I manually
echo
the output it turns into an annotation correctly, and it's only fromyarn biome ci
that it fails to work.Code of Conduct
The text was updated successfully, but these errors were encountered: