-
Notifications
You must be signed in to change notification settings - Fork 3k
#63170 Unify the notation used for version ranges #9424
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
base: trunk
Are you sure you want to change the base?
#63170 Unify the notation used for version ranges #9424
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN:
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
- '[0-9]+.[0-9].[0-9]+' | ||
- '!3.7.[0-9]+' | ||
- '3.[89]' | ||
- '3.[89].[0-9]+' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since none of the 3.x versions supported versions, do they even need to have the workflow as a trigger?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the retired branches were left in the past to avoid any possible headaches when backporting changes to older branches. But now that all workflows running in older branches make use of the reusable pattern, there are almost no changes to the calling workflow files required.
The only other reason to leave is a way to document branches that used the workflow. But most have an inline comment documenting that above the events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm impartial to changing the syntax so only versions receiving security updates are included. I lean towards that being a good change. If we do choose to update these filters to only apply to 4.7+, we should make sure to update any relevant pages in the handbook so that this step is done every time old branches are trimmed from the support matrix.
- '[0-9]+.[0-9].[0-9]+' | ||
- '!3.7.[0-9]+' | ||
- '3.[89]' | ||
- '3.[89].[0-9]+' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the retired branches were left in the past to avoid any possible headaches when backporting changes to older branches. But now that all workflows running in older branches make use of the reusable pattern, there are almost no changes to the calling workflow files required.
The only other reason to leave is a way to document branches that used the workflow. But most have an inline comment documenting that above the events.
This updates workflows to all use the same notation for tag version ranges. It removes the usage pattern where
[0-9]+.[0-9]
is allowed and subsequently partly disallowed, replacing it with the more explicit and readable notation of inclusive ranges.Trac ticket: https://core.trac.wordpress.org/ticket/63170