Skip to content

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

Open
polasudo wants to merge 1 commit into
redhat-developer:mainfrom
polasudo:chore/2y-migration-branch-patterns
Open

chore: generalize release-1.* branch patterns for 2.y support#266
polasudo wants to merge 1 commit 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 the hardcoded release-1.[0-9]+ branch-filter pattern in the test workflow to a digit-agnostic equivalent (release-[0-9]+.[0-9]+), 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 pattern matches 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/test.yml

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]+, which would
silently stop matching once release branches move to release-2.0 and
beyond. Generalize to a digit-agnostic pattern (release-[0-9]+.[0-9]+)
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>
@sonarqubecloud

Copy link
Copy Markdown

@polasudo
polasudo marked this pull request as ready for review July 21, 2026 08:22
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.

1 participant