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

Multiple code owners cause internal error #769

Open
Alexander-Shukaev opened this issue Jul 24, 2024 · 1 comment
Open

Multiple code owners cause internal error #769

Alexander-Shukaev opened this issue Jul 24, 2024 · 1 comment

Comments

@Alexander-Shukaev
Copy link

❗ Validator: INTERNAL ERROR
Status ERROR

❗ Internal error!
Input :
Settings : {}
Error : This is a mergeable bug, please report it on our issue tracker: https://github.com/mergeability/mergeable/issues/new

SyntaxError: Invalid regular expression: /^*/i: Nothing to repeat
    at new RegExp (<anonymous>)
    at createRegexToMatch (/workspace/lib/validators/options_processor/gitPattern.js:85:10)
    at GitPattern.checkIfPathMatches (/workspace/lib/validators/options_processor/gitPattern.js:41:19)
    at /workspace/lib/validators/options_processor/gitPattern.js:22:63
    at Array.find (<anonymous>)
    at /workspace/lib/validators/options_processor/gitPattern.js:22:45
    at Array.filter (<anonymous>)
    at Object.for (/workspace/lib/validators/options_processor/gitPattern.js:21:16)
    at /workspace/lib/validators/options_processor/owners.js:24:29
    at Array.forEach (<anonymous>)
* @org/team1 @org/team2
@andekande
Copy link
Contributor

andekande commented Nov 6, 2024

Hello,
can you please check if there is no space before the 'star' character.
Also there might be some hidden control-characters in that CODEOWNERS line. (before or after the *)
Also make sure its not the only line (maybe add a blank line at the end)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants