forked from PoshCode/Tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitVersion.yml
More file actions
32 lines (32 loc) · 1.26 KB
/
Copy pathGitVersion.yml
File metadata and controls
32 lines (32 loc) · 1.26 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
mode: ContinuousDelivery
# Mainline
assembly-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILDCOUNT ?? 0}'
assembly-informational-format: '{InformationalVersion}+Build.{env:BUILDCOUNT ?? 0}.Date.{CommitDate}.Branch.{env:SAFEBRANCHNAME ?? unknown}.Sha.{Sha}'
branches:
master:
increment: Minor # Allow feat: to bump minor
regex: ^master$|^main$
track-merge-target: true
tag: "" # No pre-release tag on main
develop:
increment: Minor
regex: ^develop$
track-merge-target: true
tag: "alpha" # Use 'tag' We need gitversion 5.x (the new 6.x version will not support SemVer 1 that PowerShell still uses)
feature:
increment: Minor
regex: ^feature/*
track-merge-target: true
tag: "alpha" # Optional for feature branches
release:
increment: Patch
regex: ^release/*
track-merge-target: true
tag: "beta" # Optional for release branches
major-version-bump-message: '(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w\s\-,/]*\))?(!:|:.*\n\n((.+\n)+\n)?BREAKING CHANGE:\s.+)\w'
minor-version-bump-message: '(feat)(\([\w\s\-,/]*\))?:'
patch-version-bump-message: '(fix|perf)(\([\w\s\-,/]*\))?:'
ignore:
sha:
- b3f3880af234dd9fcc8e59979a8db2564699992c
- 333f626064f113cd2e5828e1b8a019002507e6ea