Clarify support for an optional v
-prefix in branch and tag names
#11712
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey all, thanks for such a cool project ❤️
We at Wagtail use RTD for our docs, and we use
v
-prefixed names for our git tags. RTD seems to pick it up nicely, but I couldn't find any mention of the prefix in the docs. I wanted to make sure that this is the default RTD behaviour rather than something that we set up at some point and forgot about.In https://docs.readthedocs.io/en/stable/versions.html it says that RTD follows SemVer and PEP 440 for its default versioning workflows. However, SemVer.org says the following:
I suppose that kind of implies RTD's behaviour. However, the first sentence of "No, “v1.2.3” is not a semantic version" and the reinforcement in the last part "the semantic version is “1.2.3”" combined with RTD's docs only saying "we follow semantic versioning" made me doubt whether the
v
prefix is supported by default or not.It looks like this is something RTD has supported since the very beginning (at least since 556f676 when automation rules were added). Then the regex is changed in #6402 to use the one suggested by SemVer.org, with the addition of the
v
-prefix support. This was explicitly acknowledged in #6395 (comment), but never documented.I thought I'd add this info to help others who might stumble upon the same confusion as I did 🙂
Related: #8476
📚 Documentation previews 📚
docs
): https://docs--11712.org.readthedocs.build/en/11712/dev
): https://dev--11712.org.readthedocs.build/en/11712/