actions / actions/toolkit

[problem-matchers] support for glob search the file

Open
#1,134 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md describes that I can specify a matching group for the filename and one for the fromPath, but what I actually need is to specify a pref and/or glob pattern.

The analysis toll I like to annotate errors emits the following message:

Marker [on: /projectname/SomeFile.java, id: 3107, lineNumber: 99, message: Something went Wrong]

The problem is that the file is actually located in subfolder/projectname/SomeFile.java so if it would be possible to define something like

  • fileroot: "/base/**/subfolder"
  • fileroot: "subfolder"

this would be great so the file is then searched in a folder matching the fileroot

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docs/problem-matchers.md, especially the filename and fromPath matching-group behavior described there. Trace the problem-matcher implementation that consumes those fields and determine how a fileroot prefix or glob should resolve /projectname/SomeFile.java to subfolder/projectname/SomeFile.java; done means the documented pattern works for this example and existing matching behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.