diff --git a/gitversion.yml b/gitversion.yml index 733bd80..dd976c3 100644 --- a/gitversion.yml +++ b/gitversion.yml @@ -1,2 +1,57 @@ +assembly-versioning-scheme: MajorMinorPatch mode: Mainline -increment: patch \ No newline at end of file + +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: '[/-](?\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: []