Correct language tags on five non-YAML code examples - #45907
Conversation
Five blocks in "Remove access to public registries" are tagged `yaml copy` but contain other formats: two yarn.lock excerpts, a pip.conf INI section, a Pipfile TOML section, and a pyproject.toml TOML section. None parse as YAML, and each is highlighted with the wrong grammar. Retagged as `text`, which is already used elsewhere in content/ for formats without a dedicated tag. The seven genuine dependabot.yml examples in this article are unchanged.
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
|
Thanks for the PR @SurefireStudios! It's helpful when you link to the article you're updating in the OP. It makes it easier to triage 💖 I'll send this over to the team. |
|
Good call — added the article link to the OP, and to #45908 which edits the same article. Thanks for triaging. |
mchammer01
left a comment
There was a problem hiding this comment.
Thanks for catching these incorrect language tags!⚡
The changes look good to me!
|
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡ |
Why:
Closes:
Five code blocks in Remove access to public registries are tagged
yaml copybut contain no YAML, so the highlighter applies the wrong grammar.yarn.locklockfilepip.conf(INI)Pipfile(TOML)pyproject.toml(TOML)What's being changed (if available, include any code snippets, screenshots, or gifs):
Retagged those five blocks from
yaml copytotext copy, keeping thecopyattribute.I picked
textbecause it is already used ~400 times incontent/whiletomlandiniappear nowhere — happy to switch totomlfor the Pipfile and pyproject.toml blocks if you prefer.The seven genuine
dependabot.ymlexamples in this article are untouched and still parse as YAML.Check off the following: