Skip to content

chore: generalize release-1.* branch patterns for 2.y support - #470

Merged
openshift-merge-bot[bot] merged 3 commits into
redhat-developer:mainfrom
polasudo:chore/2y-migration-branch-patterns
Jul 24, 2026
Merged

chore: generalize release-1.* branch patterns for 2.y support#470
openshift-merge-bot[bot] merged 3 commits into
redhat-developer:mainfrom
polasudo:chore/2y-migration-branch-patterns

Conversation

@polasudo

@polasudo polasudo commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Generalizes hardcoded release-1.[0-9]+ / rhdh-1.[0-9]+ / 1.[0-9]+.x branch-filter patterns in GitHub Actions workflows to digit-agnostic equivalents (release-[0-9]+.[0-9]+, etc.), so CI continues to trigger correctly once release branches move to release-2.0 and beyond.
  • No behavior change for existing 1.y branches — verified via regex simulation that the new patterns match both current release-1.10-style branches and future release-2.0/release-10.3-style branches, while still rejecting unrelated branches.

Files changed

  • .github/workflows/lint.yaml
  • .github/workflows/pre-commit.yaml
  • .github/workflows/release.yaml
  • .github/workflows/test.yaml

Context

Part of a broader upstream build-infrastructure audit for 2.y readiness across rhdh-operator, rhdh-chart, rhdh-local, and red-hat-developers-documentation-rhdh. Opened as draft to track review before the 2.0 branch cut.

Test plan

  • CI passes on this PR
  • Confirm no regression for existing release-1.y triggers

Assisted-by Cursor

Related

GitHub Actions branch filters hardcoded release-1.[0-9]+ / rhdh-1.[0-9]+ /
1.[0-9]+.x, which would silently stop matching once release branches move
to release-2.0 and beyond. Generalize these to digit-agnostic patterns
(release-[0-9]+.[0-9]+, etc.) so CI keeps working across the 1.y -> 2.y
transition with no further changes needed.

Part of the upstream build-infrastructure audit for 2.y readiness.

Co-authored-by: Cursor <cursoragent@cursor.com>
@polasudo
polasudo marked this pull request as ready for review July 21, 2026 08:22
@polasudo
polasudo requested a review from a team as a code owner July 21, 2026 08:22
Comment thread .github/workflows/lint.yaml Outdated
Co-authored-by: Armel Soro <armel@rm3l.org>
@openshift-ci openshift-ci Bot removed the lgtm label Jul 24, 2026
@openshift-ci openshift-ci Bot added the lgtm label Jul 24, 2026
@sonarqubecloud

Copy link
Copy Markdown

@openshift-merge-bot
openshift-merge-bot Bot merged commit a33e07a into redhat-developer:main Jul 24, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants