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

Support coloured Problem Matcher output #435

Open
stefanbuck opened this issue Apr 28, 2020 · 1 comment
Open

Support coloured Problem Matcher output #435

stefanbuck opened this issue Apr 28, 2020 · 1 comment
Labels
enhancement New feature or request problem matcher

Comments

@stefanbuck
Copy link

Describe the enhancement

Wouldn't it be useful to be able to add colors to the Problem Matcher output using ANSI codes.

Additional information

Current

current

Suggested

Screenshot 2020-04-29 at 00 06 05

@ockham
Copy link

ockham commented Apr 21, 2021

Weird, according to the @actions/core package README, it seems like ANSI colors would be supported? That README refers to the core.info() function, but that is basically just an alias of process.stdout.write():

/**
* Writes info to log with console.log.
* @param message info message
*/
export function info(message: string): void {
process.stdout.write(message + os.EOL)
}

So one would think that doing the same thing manually should also work... 🤔

Edit: Disregard, upon closer reading, this issue is about Problem Matchers, rather than (generalized) annotations. Sorry for the noise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request problem matcher
Projects
None yet
Development

No branches or pull requests

3 participants