-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion-validator.yaml
More file actions
53 lines (40 loc) · 1.28 KB
/
Copy pathversion-validator.yaml
File metadata and controls
53 lines (40 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Version Validator Plugin Example
# See: https://sley.indaco.dev/plugins/version-validator.html
path: .version
plugins:
version-validator:
enabled: true
rules:
# Pre-release format validation
- type: "pre-release-format"
pattern: "^(alpha|beta|rc)(\\.[0-9]+)?$"
# Version number limits
- type: "major-version-max"
value: 10
# - type: "minor-version-max"
# value: 99
# - type: "patch-version-max"
# value: 99
# Pre-release iteration limit (e.g., alpha.6 fails if max is 5)
- type: "max-prerelease-iterations"
value: 10
# Require pre-release for 0.x versions
# - type: "require-pre-release-for-0x"
# enabled: true
# Even minor version policy (stable releases must have even minor)
- type: "require-even-minor"
enabled: false # Set to true to enforce
# Disallow specific bump types
# - type: "no-major-bump"
# enabled: true
# - type: "no-minor-bump"
# enabled: true
# - type: "no-patch-bump"
# enabled: true
# Branch constraints
- type: "branch-constraint"
branch: "release/*"
allowed: ["patch"]
- type: "branch-constraint"
branch: "main"
allowed: ["minor", "patch"]