Skip to content

Commit

Permalink
chore: Adjust versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed May 28, 2024
1 parent fe5e913 commit 73ebaf1
Showing 1 changed file with 56 additions and 1 deletion.
57 changes: 56 additions & 1 deletion gitversion.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,57 @@
assembly-versioning-scheme: MajorMinorPatch
mode: Mainline
increment: patch

branches:
main:
mode: ContinuousDeployment
regex: main
tag: dev
increment: Minor
is-source-branch-for: ['beta', 'stable']

pull-request:
regex: ^(pull|pull\-requests|pr)[/-]
mode: ContinuousDeployment
tag: 'PullRequest'
tag-number-pattern: '[/-](?<number>\d+)[-/]'
increment: Inherit

beta:
mode: ContinuousDeployment
regex: ^release/beta/.*
tag: beta
increment: none
source-branches: ['main']

stable:
regex: ^release/stable/.*
tag: ''
increment: Patch
source-branches: ['main','beta']
is-mainline: true

dev:
mode: ContinuousDeployment
regex: ^dev/.*?/(.*?)
tag: dev.{BranchName}
source-branches: ['main', 'stable', 'projects', 'feature']
increment: none

projects:
tag: proj-{BranchName}
regex: ^projects/(.*?)
source-branches: ['main']
increment: none

feature:
tag: feature.{BranchName}
regex: ^feature/(.*?)
source-branches: ['main']
increment: none

release:
# disable default release branch
regex: ignore

ignore:
sha: []

0 comments on commit 73ebaf1

Please sign in to comment.