Skip to content

Problem matchers which match an invalid file cause annotations to come up as being in the file .github #473

@peternewman

Description

@peternewman

Describe the bug
If a problem matcher doesn't match a valid file (e.g. the regex captures "test.txt ", with a space at the end, the annotation comes up as being in the file .github rather than the matched file.

To Reproduce
Create a problem matcher which matches at least an invalid filename, or possibly a file not in the repo.

Expected behavior
Either not annotating .github, or annotating the match for a filename that doesn't exist, or perhaps clearest some sort of error somewhere (perhaps in the action log), that the matched filename doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexternal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions