When I type (?i) into a regex rule, then the runner throws an error.
Action version:
Latest version.
Platform:
[x] Ubuntu
[ ] macOS
[ ] Windows
Runner type:
[x] Hosted
[ ] Self-hosted
Repro steps:
Add the following rule to labeler.yml:
SOMELABEL:
- head-branch: '^(?i)(a).*'
Expected behavior:
The error shouldn't be thrown.
Actual behavior:
GitHub Actions runner on ubuntu-latest throw the following error:
The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api
Error: SyntaxError: Invalid regular expression: /^(?i)(a).*/: Invalid group
Error: Invalid regular expression: /^(?i)(a).*/: Invalid group
Description:
When I type
(?i)
into a regex rule, then the runner throws an error.Action version:
Latest version.
Platform:
Runner type:
Repro steps:
Add the following rule to
labeler.yml
:Expected behavior:
The error shouldn't be thrown.
Actual behavior:
GitHub Actions runner on ubuntu-latest throw the following error: