Environments > Deployment branches and tags > Selected branches and tags. pattern description not matching link to doc #29473
Labels
actions
This issue or pull request should be reviewed by the docs actions team
content
This issue or pull request belongs to the Docs Content team
waiting for review
Issue/PR is waiting for a writer's review
Code of Conduct
What article on docs.github.com is affected?
Details:
Extract of current content web:
Selected branches and tags: Only branches and tags that match your specified name patterns can deploy to the environment.
If you specify releases/* as a deployment branch or tag rule, only a branch or tag whose name begins with releases/ can deploy to the environment. (Wildcard characters will not match /. To match branches or tags that begin with release/ and contain an additional single slash, use release//.) If you add main as a branch rule, a branch named main can also deploy to the environment. For more information about syntax options for deployment branches, see the Ruby File.fnmatch documentation.
Extract of current content repo file:
Selected branches{% ifversion deployment-protections-tag-patterns %} and tags{% endif %}: Only branches{% ifversion deployment-protections-tag-patterns %} and tags{% endif %} that match your specified name patterns can deploy to the environment.
If you specify releases/* as a deployment branch{% ifversion deployment-protections-tag-patterns %} or tag{% endif %} rule, only a branch{% ifversion deployment-protections-tag-patterns %} or tag{% endif %} whose name begins with releases/ can deploy to the environment. (Wildcard characters will not match /. To match branches{% ifversion deployment-protections-tag-patterns %} or tags{% endif %} that begin with release/ and contain an additional single slash, use release//.) If you add main as a branch rule, a branch named main can also deploy to the environment. For more information about syntax options for deployment branches, see the Ruby File.fnmatch documentation.
extract of current content code:
What changes are you suggesting?
I have seems to find an issue, It is low priority but I wanted to warn about it since it makes GitHub docs look messy and it makes environment less user-friendly. Please let me know if I am mistaken:
Syntax options from the provided link:
"For more information about syntax options for deployment branches, see the Ruby File.fnmatch documentation."
Do not match those provided in the description:
"if you specify releases/* as a deployment branch or tag rule, only a branch or tag whose name begins with releases/ can deploy to the environment. (Wildcard characters will not match /. To match branches or tags that begin with release/ and contain an additional single slash, use release//.) If you add main as a branch rule, a branch named main can also deploy to the environment"
Additionally
And it does not match other branch patterns in GitHub like the workflow triggers for branch, an standardization on branch patterns would be appreciated since is not only the documentation misleading but also it is not like I can take reference from other areas where I have work with branches in GitHub.
Additional information
I did not found a similar issue
The text was updated successfully, but these errors were encountered: