forked from statisticsnorway/statbus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitVersion.yml
More file actions
59 lines (51 loc) · 2.97 KB
/
Copy pathGitVersion.yml
File metadata and controls
59 lines (51 loc) · 2.97 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
54
55
56
57
58
59
# GitVersion configuration file
# Note: This configuration was initially provided and explained by ChatGPT.
# It is tailored to the project's branching strategy as of [Date/Version].
# Please review and adapt it as necessary to fit the evolving project requirements and GitVersion updates.
# For more information on Semantic Versioning (SemVer), visit: https://semver.org/
mode: Mainline # Main versioning mode; each commit on master increments the version
# Branch configuration: customizes how different types of branches are handled
branches:
master:
regex: master # Identifies the master branch
tag: '' # No additional tag for master branch versions
# Feature branches (e.g., feature/new-cool-feature or feat/new-cool-feature)
feature:
regex: '^features?[/-]' # Regex to match feature branch names
mode: ContinuousDelivery # Continuous Delivery mode for feature branches
tag: 'feature' # Tag version numbers with 'feature'
increment: Minor # Minor version increments for new features
source-branches: ['master', 'develop'] # Specify the branches that can be sources for feature branches
prevent-increment-of-merged-branch-version: false
track-merge-target: false
# Fix branches (e.g., fix/bug-fix)
fix:
regex: '^fix(es)?[/-]' # Regex to match fix branch names
mode: ContinuousDelivery # Continuous Delivery mode for fix branches
tag: 'fix' # Tag version numbers with 'fix'
increment: Patch # Patch version increments for fixes
source-branches: ['master', 'develop'] # Specify the branches that can be sources for feature branches
# DevOps and deployment branches (e.g., devops/deploy-to-prod)
devops:
regex: '^devops[/-]' # Regex to match DevOps branch names
mode: ContinuousDelivery # Continuous Delivery mode for DevOps branches
tag: 'devops' # Tag version numbers with 'devops'
source-branches: [] # Specify the branches that can be sources for feature branches
increment: None # No version increment for DevOps branches
# Dependabot branches (e.g., dependabot/npm_and_yarn/express-4.17.1)
dependabot:
regex: '^dependabot[/-]' # Regex to match Dependabot branch names
mode: ContinuousDelivery # Continuous Delivery mode for Dependabot branches
tag: 'dependabot' # Tag version numbers with 'dependabot'
increment: Patch # Patch version increments for dependency updates
source-branches: ['master', 'develop'] # Specify the branches that can be sources for feature branches
# Legacy branches (e.g., legacy/old-system-support)
legacy:
regex: '^legacy[/-]' # Regex to match legacy branch names
mode: ContinuousDelivery # Continuous Delivery mode for legacy branches
tag: 'legacy' # Tag version numbers with 'legacy'
increment: None # No version increment for legacy branches
source-branches: [] # Specify the branches that can be sources for feature branches
# Configuration to ignore specific commits if necessary
ignore:
sha: [] # List of commit SHAs to ignore in version calculations