feat(tools-formatting): Support github and azure output formatting for annotations and groups#4153
Open
JasonVMo wants to merge 6 commits into
Open
feat(tools-formatting): Support github and azure output formatting for annotations and groups#4153JasonVMo wants to merge 6 commits into
JasonVMo wants to merge 6 commits into
Conversation
…crosoft/rnx-kit into user/jasonvmo/output-grouping
Contributor
|
Any chance this could be shared with Lage? |
Collaborator
Author
Yes, totally. This package is a zero-dependency formatting package that can be used anywhere for structured formatting. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This adds functionality in tools-formatting to support github actions and azure pipelines console output.
Reporters
It does this by introducing the concept of reporters, similar to many other tools (like testing frameworks), which controls how certain types of output is formatted.
ReporterRegistryis a singleton class which can be overridden if additional reporter types need to be supported.Core functions
The library exposes
formatMessage,formatFileMessage, andformatGroupwhich can have the reporter specified, or will default to whatever is appropriate for the current environment.To-dos