AbsaOSS / AbsaOSS/check-pr-requirements

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

Aperta
#26 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Shell
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.