-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add a linter/fix script for mdn_urls #23431
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
Conversation
|
See #23481 (review) |
Thanks for your feedback. What you describe is already happening and leads to lots of PRs and review work which IMO can be automated. My intent with this PR is to actually prevent PRs like #23499 (and see tons of them at: https://github.com/mdn/browser-compat-data/pulls?q=is%3Apr+mdn_url+is%3Aclosed). The idea is that we add mdn_urls automatically whenever dependabot updates the mdn-content-inventory package (which will release frequently). |
This PR uses the mdn/content inventory and mdn/content's _redirect.txt file to update mdn_urls automatically.
It works with the https://www.npmjs.com/package/@ddbeck/mdn-content-inventory package. Whenever dependabot updates this dependency it might be that this lint fails, maintainers can then look at the failures and run
npm run fixto update mdn_urls automatically and, if needed, make manual changes.The initial update to mdn_urls (that will make this PR pass CI) is #23481 and so this PR is blocked by having #23481 merged.