-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitVersion.yml
More file actions
24 lines (19 loc) · 1.05 KB
/
Copy pathGitVersion.yml
File metadata and controls
24 lines (19 loc) · 1.05 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
# Используем встроенный workflow для GitHub Flow
workflow: GitHubFlow/v1
# Включить версионирование на основе MERGE commit messages (conventional commits)
# MergeMessageOnly - анализировать только merge commits, игнорировать промежуточные коммиты в PR
commit-message-incrementing: MergeMessageOnly
# Настройка распознавания conventional commits
major-version-bump-message: '\+semver:\s?(breaking|major)|^(feat|fix)!:|BREAKING\s+CHANGE:'
minor-version-bump-message: '\+semver:\s?(feature|minor)|^feat(\(.+\))?:'
patch-version-bump-message: '\+semver:\s?(fix|patch)|^(fix|chore|docs|style|refactor|test|build|ci|perf)(\(.+\))?:'
no-bump-message: '\+semver:\s?none'
branches:
main:
mode: ContinuousDeployment
label: '' # Переопределяем label для main, чтобы версии были без pre-release suffix
pull-request:
regex: ^(pull|pull\-requests|pr)[/-](?<Number>\d+)
label: pr-{Number}
ignore:
sha: []