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

Problem matchers: Support finding multiple matches in a single line #481

Open
lumaxis opened this issue May 27, 2020 · 0 comments
Open

Problem matchers: Support finding multiple matches in a single line #481

lumaxis opened this issue May 27, 2020 · 0 comments
Labels
enhancement New feature or request problem matcher

Comments

@lumaxis
Copy link

lumaxis commented May 27, 2020

I'm trying to write a custom problem matcher for a tool that outputs all its results as a JSON object on a single line.
Today, Actions only supports finding one result per line. It would be great to be able to find multiple results per line, similar to the /g option for regexs.

It seems like the runner is using Regex.Match today which only yields one result max: https://github.com/actions/runner/blob/6c70d53eead402ba5d53676d6ed649a04e219c9b/src/Runner.Worker/IssueMatcher.cs#L68

I would suggest to look into maybe using Regex.Matches or something similar that enables multiple matches per line.

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

2 participants