Skip to content
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

Relax Patch Release Regex #3858

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Relax Patch Release Regex #3858

merged 1 commit into from
Aug 2, 2024

Conversation

d80tb7
Copy link
Collaborator

@d80tb7 d80tb7 commented Aug 2, 2024

Previously patch release branches had to match the regex ^patch/v[0-9]+\.[0-9]+\.[0-9]+-patch[0-9]+$ which essentially meant a separate release branch for each patch release (patch/v0.9.0-patch1, patch/v0.9.0-patch2 etc). We've now relaxed this to be ^patch/v[0-9]+\.[0-9]+\.[0-9]+.* which means that we can just create a single release release branch for a given release (e.g. patch/v0.9.0) and then create as many patches off it as we want. Note that the release tag regex hasn't changed and so the tag itself must contain the patch version.

Note that this regex is a security control as it ensures we can only created official releases from protected branches. This change is safe because all branches under patch/* are protected.

Signed-off-by: Chris Martin <[email protected]>
@d80tb7 d80tb7 merged commit 58f8ea8 into master Aug 2, 2024
20 checks passed
@d80tb7 d80tb7 deleted the f/chrisma/relax-regex branch August 2, 2024 12:21
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.

2 participants