AbsaOSS / AbsaOSS/check-pr-requirements

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

Ouverte
#26 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Shell
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.