This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.nyx.yaml
135 lines (135 loc) · 5.78 KB
/
.nyx.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
---
# starting from the "simple" preset gives us:
# - the Conventional Commits convention
# - the "mainline" and "internal" release types (that we override here)
preset: "simple"
commitMessageConventions:
enabled:
- conventionalCommits
items:
conventionalCommits:
expression: "(?m)^(?<type>[a-zA-Z0-9_]+)(!)?(\\((?<scope>[a-zA-Z0-9 -]+)\\))?:( (?<title>.+))$(?s).*"
bumpExpressions:
major: "(?s)(?m)^[a-zA-Z0-9_]+(!: .*|.*^(BREAKING( |-)CHANGE: )).*"
minor: "(?s)(?m)^feat(!{0})(\\([a-zA-Z0-9 -]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*"
patch: "(?s)(?m)^fix(!{0})(\\([a-zA-Z0-9 -]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*"
git:
remotes:
origin:
authenticationMethod: "USER_PASSWORD"
user: "{{#environmentVariable}}GH_TOKEN{{/environmentVariable}}"
password: "{{#environmentVariable}}GH_TOKEN{{/environmentVariable}}"
changelog:
path: "CHANGELOG.md"
template: "./.ci/CHANGELOG.tpl"
sections:
"Added": "^feat$"
"Fixed": "^fix$"
"Changed": "^(chore|perf|style|docs)$"
releaseTypes:
enabled:
- mainline
- integration
- hotfix
- release
- maintenance
- internal
publicationServices:
- github
items:
# "mainline" overrides the release type with the same name from the preset
mainline:
description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}"
filterTags: "^({{configuration.releasePrefix}})?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)$"
gitCommit: "true"
gitPush: "true"
gitTag: "true"
matchBranches: "^main$"
matchEnvironmentVariables:
CI: "^true$" # only match this release type when running on CI servers
matchWorkspaceStatus: "CLEAN" # only match this release type when the repository is clean
publish: "true"
integration:
description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}"
collapseVersions: true
collapsedVersionQualifier: "{{#sanitizeLower}}{{branch}}{{/sanitizeLower}}"
filterTags: "^({{configuration.releasePrefix}})?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)(-develop(\\.([0-9]\\d*))?)$"
gitCommit: "true"
gitPush: "true"
gitTag: "true"
matchBranches: "^develop$"
matchEnvironmentVariables:
CI: "^true$" # only match this release type when running on CI servers
matchWorkspaceStatus: "CLEAN" # only match this release type when the repository is clean
publish: "false"
hotfix:
description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}"
collapseVersions: true
collapsedVersionQualifier: "{{#sanitizeLower}}{{branch}}{{/sanitizeLower}}"
filterTags: "^({{configuration.releasePrefix}})?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)(-hotfix(([0-9a-zA-Z]*)(\\.([0-9]\\d*))?)?)$"
gitCommit: "true"
gitPush: "true"
gitTag: "true"
matchBranches: "^hotfix((-|\\/)[0-9a-zA-Z-_]+)?$"
matchEnvironmentVariables:
CI: "^true$" # only match this release type when running on CI servers
matchWorkspaceStatus: "CLEAN" # only match this release type when the repository is clean
publish: "false"
release:
description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}"
collapseVersions: true
collapsedVersionQualifier: "{{#firstLower}}{{branch}}{{/firstLower}}"
filterTags: "^({{configuration.releasePrefix}})?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)(-release((\\.([0-9]\\d*))?)?)$"
gitCommit: "true"
gitPush: "true"
gitTag: "true"
matchBranches: "^release(-|/)({{configuration.releasePrefix}})?([0-9|x]\\d*)(\\.([0-9|x]\\d*)(\\.([0-9|x]\\d*))?)?$"
matchEnvironmentVariables:
CI: "^true$" # only match this release type when running on CI servers
matchWorkspaceStatus: "CLEAN" # only match this release type when the repository is clean
publish: "false"
versionRangeFromBranchName: true
maintenance:
description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}"
filterTags: "^({{configuration.releasePrefix}})?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)$"
gitCommit: "true"
gitPush: "true"
gitTag: "true"
matchBranches: "^[a-zA-Z]*([0-9|x]\\d*)(\\.([0-9|x]\\d*)(\\.([0-9|x]\\d*))?)?$"
matchEnvironmentVariables:
CI: "^true$" # only match this release type when running on CI servers
matchWorkspaceStatus: "CLEAN" # only match this release type when the repository is clean
publish: "true"
versionRangeFromBranchName: true
# "internal" overrides the release type with the same name from the preset adding some qualifiers and is the global fallback for all release types
internal:
description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}"
collapseVersions: true
collapsedVersionQualifier: "internal"
gitPush: "false"
gitTag: "false"
identifiers:
-
qualifier: "{{#sanitizeLower}}{{branch}}{{/sanitizeLower}}"
position: "BUILD"
-
qualifier: "{{#short5}}{{releaseScope.finalCommit}}{{/short5}}"
position: "BUILD"
-
qualifier: "{{#timestampYYYYMMDDHHMMSS}}{{timestamp}}{{/timestampYYYYMMDDHHMMSS}}"
position: "BUILD"
publish: "false"
services:
github:
type: "GITHUB"
options:
# The GH_TOKEN variable is fetched from the "secrets" context and passed as an environment variable.
# See:
# - https://docs.github.com/en/actions/security-guides/automatic-token-authentication
# - https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
AUTHENTICATION_TOKEN: "{{#environmentVariable}}GH_TOKEN{{/environmentVariable}}"
REPOSITORY_NAME: "kai"
REPOSITORY_OWNER: "konstellation-io"
resume: true
stateFile: ".nyx-state.json"
summaryFile: '.nyx-summary.txt'