GitHub Actions - Add custom severity mapping inside problem matchers please #5924
Unanswered
ale5000-git
asked this question in
Actions
Replies: 1 comment
-
So, this isn't strictly necessary as you can address it with 3 problem matchers: {
"problemMatcher": [
{
"owner": "test-matcher-notice",
"severity": "notice",
"pattern": [
{
"regexp": "^(?:\\033\\[32|styles?)(.+)$",
"message": 1
}
]
},
{
"owner": "test-matcher-warning",
"severity": "warning",
"pattern": [
{
"regexp": "^warn(.+)$",
"message": 1
}
]
},
{
"owner": "test-matcher-error",
"severity": "error",
"pattern": [
{
"regexp": "^\\033\\[31(.+)$",
"message": 1
}
]
}
]
} It's moderately annoying, but mostly because the documentation is so poor that it's really hard to figure out that you can do this. I'm mostly commenting here so that my future self will find this comment and remember how to do it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please add custom severity mapping inside problem matchers.
I propose this syntax:
Beta Was this translation helpful? Give feedback.
All reactions