AbsaOSS / AbsaOSS/check-pr-requirements

branch-name: allow overriding prefix list without rewriting full regex

Offen
#26 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Shell
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Follow-up from review of #25 (checks/branch_name.sh).

Today the branch convention is controlled only by the full `branch-pattern` regex (default `^(feature|bugfix|hotfix|release|support|chore|docs|ci|dependabot)/[a-zA-Z0-9._-]+$`). Adding or removing a single prefix forces the user to copy and re-author the entire regex.

Proposal: add a granular input (e.g. `branch-prefixes`, comma-separated) that overrides just the allowed prefix list while keeping the rest of the pattern intact. Composable with `branch-require-ticket`.

- Keep `branch-pattern` as the full-override escape hatch (back-compat).
- When `branch-prefixes` is set, build the regex from it.
- Document precedence between `branch-prefixes` and `branch-pattern`.

Ref: review comment by @miroslavpojer on checks/branch_name.sh.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.