|
1 | 1 |
|
2 | | -// Branch naming rules config (single source of truth) |
| 2 | +/* Branch naming rules config (single source of truth) */ |
3 | 3 | const config = { |
4 | | - // Allowed branch types |
| 4 | + /** Allowed branch types */ |
5 | 5 | types: ['feature', 'fix', 'chore', 'story', 'task', 'bug', 'sub-task'], |
6 | | - // Optional ticket prefix and number (if not needed, set both to null) |
7 | | - ticketIdPrefix: 'PRJ|ERM', // e.g. 'PRJ|ERM' (no parentheses) |
8 | | - ticketNumberPattern: '[0-9]+', // e.g. '[0-9]+' or null |
9 | | - // Branch name (after type and optional ticket) |
| 6 | + /** Optional ticket prefix and number (if not needed, set both to null) */ |
| 7 | + ticketIdPrefix: 'PRJ|ERM', /** e.g. 'PRJ|ERM' (no parentheses) */ |
| 8 | + ticketNumberPattern: '[0-9]+', /** e.g. '[0-9]+' or null */ |
| 9 | + /** Branch name (after type and optional ticket) */ |
10 | 10 | namePattern: '[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*', |
11 | | - // Branches to skip validation |
| 11 | + /** Branches to skip validation */ |
12 | 12 | skipped: ['wip', 'main', 'master', 'develop/test', 'develop/host1', 'develop/host2'], |
13 | | - // Commit footer label to append with ticket (configurable) |
| 13 | + /** Commit footer label to append with ticket (configurable) */ |
14 | 14 | commitFooterLabel: 'Closes', |
15 | 15 | }; |
16 | 16 |
|
|
0 commit comments