-
Notifications
You must be signed in to change notification settings - Fork 35
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
Markdown link checking isn't working #170
Comments
I'm lead to believe this is due to the empty ignorePatterns we're passing on the config file for this action. https://github.com/open-telemetry/opamp-spec/blob/main/.markdown_link_check_config.json#L2-L5 The code that is used to ignore on the If I take the code and run the following snippet on any JS playground, I can see it always output ignorePatterns = [{}];
// nonEmptyignorePatterns = [{"pattern": "https://github.com/.*"}];
const link = "https://somerandomlink.com"
const shouldIgnore = ignorePatterns.some(function(ignorePattern) {
return ignorePattern.pattern instanceof RegExp ? ignorePattern.pattern.test(link) : (new RegExp(ignorePattern.pattern)).test(link) ? true : false;
});
// Log to console
console.log(shouldIgnore) That seems like the case when I'm running the command by hand; if I remove the ignorePatterns field the check is returned properly.
I'll open a PR to get the action and the broken links fixed. |
The current config breaks the checking, and makes the tool report status 0 for all links (w/o checking anything). For proof see:
/cc @svrnm
The text was updated successfully, but these errors were encountered: