Add a linter/fix script for mdn_urls#23431
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.