Skip to content

#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

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

johnbillion
Copy link
Member

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

@johnbillion johnbillion marked this pull request as ready for review August 11, 2025 17:17
Copy link

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 props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props johnbillion.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@johnbillion johnbillion requested a review from desrosj August 11, 2025 17:18
- '[0-9]+.[0-9].[0-9]+'
- '!3.7.[0-9]+'
- '3.[89]'
- '3.[89].[0-9]+'
Copy link
Member

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?

Copy link
Member

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.

Copy link
Member

@desrosj desrosj left a 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]+'
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants