Open AnakinPt opened 3 months ago
Hi @AnakinPt ,
I guess with this configuration Nyx never matches the chore
release type because the mainline
is matched first, correct? If not, what's the current behavior you need to change?
You can achieve that by playing with match*
attributes in release types and either (considering that the order they appear in the enabled
list matters):
chore
chore
release type before the mainline
, so that, since it's more restrictive, it's only matched when needed and, when not, the mainline can be matched nextActually the best option, also according to best practices, would be not to issue any pre-release from the main branch. Can you make the bot use a branch for that? In that case everything would be cleaner
At the moment I already have what I need. If I use this configuration:
commitMessageConventions:
enabled:
- conventionalCommits
- bumblebee
items:
bumblebee:
expression: (?m)^(?<type>[a-zA-Z0-9_]+)(\((?<scope>[a-z ]+)\))?(!)?:( (?<title>.+))$(?s).*
bumpExpressions:
patch: '(?s)(?m)^chore(!{0})(\([a-z ]+\))?:.*$'
releaseTypes:
enabled:
- chore
- mainline
- internal
publicationServices:
- github
items:
internal:
collapseVersions: true
collapsedVersionQualifier: internal
gitCommit: "false"
gitPush: "false"
gitTag: "false"
gitTagNames: []
publish: "false"
publishDraft: "false"
publishPreRelease: "false"
versionRangeFromBranchName: false
description: "{{#fileContent}}build/CHANGELOG.md{{/fileContent}}"
identifiers:
- position: BUILD
qualifier: commit
value: "{{#short5}}{{releaseScope/finalCommit}}{{/short5}}"
- position: BUILD
qualifier: branch
value: "{{#sanitizeLower}}{{branch}}{{/sanitizeLower}}"
chore:
collapseVersions: false
collapsedVersionQualifier: "chore"
filterTags: ^({{configuration.releasePrefix}})?([0-9]\d*)\.([0-9]\d*)\.([0-9]\d*)$
gitCommit: "false"
gitPush: "true"
gitTag: "true"
gitTagNames: [ ]
matchBranches: ^(master|main)$
#matchWorkspaceStatus: CLEAN
matchEnvironmentVariables:
IS_CHORE: "true"
publish: "true"
publishDraft: "false"
publishPreRelease: "true"
versionRangeFromBranchName: false
identifiers:
- position: PRE_RELEASE
qualifier: chore
value: "5"
mainline:
collapseVersions: false
filterTags: ^({{configuration.releasePrefix}})?([0-9]\d*)\.([0-9]\d*)\.([0-9]\d*)$
gitCommit: "false"
gitPush: "true"
gitTag: "true"
gitTagNames: [ ]
matchBranches: ^(master|main)$
matchWorkspaceStatus: CLEAN
publish: "true"
publishDraft: "false"
publishPreRelease: "false"
versionRangeFromBranchName: false
if I have a version of v1.2.3 and now I have a chore(deps) commit, it will enter the chore release type, by using the ENVVAR, but I don't know how to make it give me the number of significant commits to have it in the qualifier.
I have this output from nyx:
nyx : time="2024-07-26T18:32:17+01:00" level=debug msg="selecting the command to run"
At line:1 char:1
+ nyx infer --verbosity=DEBUG --summary > nyx_output.log 2>&1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (time="2024-07-2...command to run":String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
time="2024-07-26T18:32:17+01:00" level=debug msg="command to run is INFER"
time="2024-07-26T18:32:17+01:00" level=debug msg="Nyx.run(INFER)"
time="2024-07-26T18:32:17+01:00" level=debug msg="Nyx.infer()"
time="2024-07-26T18:32:17+01:00" level=debug msg="running command 'INFER'"
time="2024-07-26T18:32:17+01:00" level=debug msg="looking up command instance 'INFER' from cache"
time="2024-07-26T18:32:17+01:00" level=debug msg="no command instance 'INFER' found in cache"
time="2024-07-26T18:32:17+01:00" level=debug msg="creating new command instance 'INFER'"
time="2024-07-26T18:32:17+01:00" level=debug msg="instantiating the Git repository in 'C:\\repositories\\others\\playground'"
time="2024-07-26T18:32:17+01:00" level=debug msg="instantiating the initial state"
time="2024-07-26T18:32:17+01:00" level=debug msg="new Infer command object"
time="2024-07-26T18:32:17+01:00" level=debug msg="checking whether the Infer command is up to date"
time="2024-07-26T18:32:17+01:00" level=debug msg="the Infer command is not up to date because the internal state has no version yet or the state version doesn't match the version previously generated by Infer"
time="2024-07-26T18:32:17+01:00" level=debug msg="command 'INFER' is not up to date, running..."
time="2024-07-26T18:32:17+01:00" level=debug msg="running the Infer command..."
time="2024-07-26T18:32:17+01:00" level=debug msg="clearing the state from Infer outputs"
time="2024-07-26T18:32:17+01:00" level=debug msg="resolving the release type among enabled ones"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating release type: 'chore'"
time="2024-07-26T18:32:17+01:00" level=debug msg="release type 'chore' specifies a match branches template '^(master|main)$' that evaluates to regular expression: '^(master|main)$'"
time="2024-07-26T18:32:17+01:00" level=debug msg="current branch 'main' successfully matched by release type 'chore' matchBranches regular expression '^(master|main)$'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating environment variable 'IS_CHORE' as required by release type 'chore'"
time="2024-07-26T18:32:17+01:00" level=debug msg="environment variable 'IS_CHORE' value successfully matched by release type 'chore' regular expression 'true'"
time="2024-07-26T18:32:17+01:00" level=debug msg="release type 'chore' does not specify any workspace status requirement"
time="2024-07-26T18:32:17+01:00" level=debug msg="release type 'chore' has been selected"
time="2024-07-26T18:32:17+01:00" level=debug msg="current Git branch is 'main'"
time="2024-07-26T18:32:17+01:00" level=debug msg="walking the commit history..."
time="2024-07-26T18:32:17+01:00" level=debug msg="walking commit history. Start commit boundary is 'not defined'. End commit boundary is 'not defined'"
time="2024-07-26T18:32:17+01:00" level=debug msg="upon merge commits only the first parent is considered."
time="2024-07-26T18:32:17+01:00" level=debug msg="repository latest commit in HEAD branch is '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf' has no valid version tags so it's added to the release scope"
time="2024-07-26T18:32:17+01:00" level=debug msg="trying to infer the identifier to bump based on the commit message of commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf' against message convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'conventionalCommits' matches commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf' ('chore(deps): sdfajkd shfjksd hkjfds\n') against bump expression 'major' ('(?s)(?m)^[a-zA-Z0-9_]+(\\([a-z ]+\\))?(!: .*|.*^(BREAKING( |-)CHANGE: )).*') of
message convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'major' of message convention 'conventionalCommits' doesn't match commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf' ('chore(deps): sdfajkd shfjksd hkjfds\n') against bump expression 'minor' ('(?s)(?m)^feat(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message
convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'minor' of message convention 'conventionalCommits' doesn't match commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf' ('chore(deps): sdfajkd shfjksd hkjfds\n') against bump expression 'patch' ('(?s)(?m)^fix(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message
convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'conventionalCommits' doesn't match commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf' against message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'bumblebee' matches commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf' ('chore(deps): sdfajkd shfjksd hkjfds\n') against bump expression 'patch' ('(?s)(?m)^chore(!{0})(\\([a-z ]+\\))?:.*$') of message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'bumblebee' matches commit '1f720c46a57b47266f1a8c8ee17cd5e35677efbf', meaning that the 'patch' identifier has to be bumped, according to this commit"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '4e2dc36ec0060199911ade6407b84043078e035c'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '4e2dc36ec0060199911ade6407b84043078e035c'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '4e2dc36ec0060199911ade6407b84043078e035c' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '4e2dc36ec0060199911ade6407b84043078e035c' has no valid version tags so it's added to the release scope"
time="2024-07-26T18:32:17+01:00" level=debug msg="trying to infer the identifier to bump based on the commit message of commit '4e2dc36ec0060199911ade6407b84043078e035c'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '4e2dc36ec0060199911ade6407b84043078e035c' against message convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'conventionalCommits' matches commit '4e2dc36ec0060199911ade6407b84043078e035c'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '4e2dc36ec0060199911ade6407b84043078e035c' ('chore(deps): dsjfhsk dlfjks d\n') against bump expression 'major' ('(?s)(?m)^[a-zA-Z0-9_]+(\\([a-z ]+\\))?(!: .*|.*^(BREAKING( |-)CHANGE: )).*') of message
convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'major' of message convention 'conventionalCommits' doesn't match commit '4e2dc36ec0060199911ade6407b84043078e035c'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '4e2dc36ec0060199911ade6407b84043078e035c' ('chore(deps): dsjfhsk dlfjks d\n') against bump expression 'minor' ('(?s)(?m)^feat(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message
convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'minor' of message convention 'conventionalCommits' doesn't match commit '4e2dc36ec0060199911ade6407b84043078e035c'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '4e2dc36ec0060199911ade6407b84043078e035c' ('chore(deps): dsjfhsk dlfjks d\n') against bump expression 'patch' ('(?s)(?m)^fix(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message
convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'conventionalCommits' doesn't match commit '4e2dc36ec0060199911ade6407b84043078e035c'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '4e2dc36ec0060199911ade6407b84043078e035c' against message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'bumblebee' matches commit '4e2dc36ec0060199911ade6407b84043078e035c'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '4e2dc36ec0060199911ade6407b84043078e035c' ('chore(deps): dsjfhsk dlfjks d\n') against bump expression 'patch' ('(?s)(?m)^chore(!{0})(\\([a-z ]+\\))?:.*$') of message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'bumblebee' matches commit '4e2dc36ec0060199911ade6407b84043078e035c', meaning that the 'patch' identifier has to be bumped, according to this commit"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2' has no valid version tags so it's added to the release scope"
time="2024-07-26T18:32:17+01:00" level=debug msg="trying to infer the identifier to bump based on the commit message of commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2' against message convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'conventionalCommits' matches commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2' ('chore(deps): asjkdfjkasjk\n') against bump expression 'major' ('(?s)(?m)^[a-zA-Z0-9_]+(\\([a-z ]+\\))?(!: .*|.*^(BREAKING( |-)CHANGE: )).*') of message
convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'major' of message convention 'conventionalCommits' doesn't match commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2' ('chore(deps): asjkdfjkasjk\n') against bump expression 'minor' ('(?s)(?m)^feat(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message convention
'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'minor' of message convention 'conventionalCommits' doesn't match commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2' ('chore(deps): asjkdfjkasjk\n') against bump expression 'patch' ('(?s)(?m)^fix(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message convention
'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'conventionalCommits' doesn't match commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2' against message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'bumblebee' matches commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2' ('chore(deps): asjkdfjkasjk\n') against bump expression 'patch' ('(?s)(?m)^chore(!{0})(\\([a-z ]+\\))?:.*$') of message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'bumblebee' matches commit '20c6ea34f5f6df38f06ef5bbc6324dc4293e8fe2', meaning that the 'patch' identifier has to be bumped, according to this commit"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e' has no valid version tags so it's added to the release scope"
time="2024-07-26T18:32:17+01:00" level=debug msg="trying to infer the identifier to bump based on the commit message of commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e' against message convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'conventionalCommits' matches commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e' ('chore(deps): next\n') against bump expression 'major' ('(?s)(?m)^[a-zA-Z0-9_]+(\\([a-z ]+\\))?(!: .*|.*^(BREAKING( |-)CHANGE: )).*') of message convention
'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'major' of message convention 'conventionalCommits' doesn't match commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e' ('chore(deps): next\n') against bump expression 'minor' ('(?s)(?m)^feat(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message convention
'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'minor' of message convention 'conventionalCommits' doesn't match commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e' ('chore(deps): next\n') against bump expression 'patch' ('(?s)(?m)^fix(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message convention
'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'conventionalCommits' doesn't match commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e' against message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'bumblebee' matches commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e' ('chore(deps): next\n') against bump expression 'patch' ('(?s)(?m)^chore(!{0})(\\([a-z ]+\\))?:.*$') of message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'bumblebee' matches commit '7ff2a01b75ec3c9cbf8b67ee600b0ae5b347fc7e', meaning that the 'patch' identifier has to be bumped, according to this commit"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0' has no valid version tags so it's added to the release scope"
time="2024-07-26T18:32:17+01:00" level=debug msg="trying to infer the identifier to bump based on the commit message of commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0' against message convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'conventionalCommits' matches commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0' ('chore(deps): another flow\n') against bump expression 'patch' ('(?s)(?m)^fix(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message convention
'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'conventionalCommits' doesn't match commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0' ('chore(deps): another flow\n') against bump expression 'major' ('(?s)(?m)^[a-zA-Z0-9_]+(\\([a-z ]+\\))?(!: .*|.*^(BREAKING( |-)CHANGE: )).*') of message
convention 'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'major' of message convention 'conventionalCommits' doesn't match commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0' ('chore(deps): another flow\n') against bump expression 'minor' ('(?s)(?m)^feat(!{0})(\\([a-z ]+\\))?: (?!.*^(BREAKING( |-)CHANGE: )).*') of message convention
'conventionalCommits'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'minor' of message convention 'conventionalCommits' doesn't match commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0' against message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit message convention 'bumblebee' matches commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0'"
time="2024-07-26T18:32:17+01:00" level=debug msg="matching commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0' ('chore(deps): another flow\n') against bump expression 'patch' ('(?s)(?m)^chore(!{0})(\\([a-z ]+\\))?:.*$') of message convention 'bumblebee'"
time="2024-07-26T18:32:17+01:00" level=debug msg="bump expression 'patch' of message convention 'bumblebee' matches commit '947c8e77636d9e4ee7b13e171d7390760cc6ddb0', meaning that the 'patch' identifier has to be bumped, according to this commit"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'd67aae9d2fbdaa1cc91324fcf622568623d421a2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'd67aae9d2fbdaa1cc91324fcf622568623d421a2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'd67aae9d2fbdaa1cc91324fcf622568623d421a2' has '1' tags: '[v0.3.2]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating tag 'v0.3.2': tag is a valid version according to the 'SEMVER' scheme and will be passed to the next evaluation steps. The tag is applied to commit 'd67aae9d2fbdaa1cc91324fcf622568623d421a2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating tag 'v0.3.2': tag is greater than previously selected previousVersion tag '<none>' and will be passed to the next evaluation steps. The tag is applied to commit 'd67aae9d2fbdaa1cc91324fcf622568623d421a2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating tag 'v0.3.2': the selected release type specifies an additional filter '^(v)?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)$' (after template evaluation) for tags and the tag successfully matches so the tag will be
used as the previousVersion and the commit 'd67aae9d2fbdaa1cc91324fcf622568623d421a2' is used as the previousVersionCommit"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '8c18f5355b2e356d91192c3f2c918fee47850ba7'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '8c18f5355b2e356d91192c3f2c918fee47850ba7'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '8c18f5355b2e356d91192c3f2c918fee47850ba7' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '5622b7753ead71d147977c2cb521e2ee318879d1'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '5622b7753ead71d147977c2cb521e2ee318879d1'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '5622b7753ead71d147977c2cb521e2ee318879d1' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '18f189e267f92118bfbf1c2c6c28f49ace98b2f1'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '18f189e267f92118bfbf1c2c6c28f49ace98b2f1'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '18f189e267f92118bfbf1c2c6c28f49ace98b2f1' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '107e2e4a761e6ba3d72969744d52ec390d4baa2d'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '107e2e4a761e6ba3d72969744d52ec390d4baa2d'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '107e2e4a761e6ba3d72969744d52ec390d4baa2d' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'fdda46a642fb55286ba355f55a188ae3ef13196b'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'fdda46a642fb55286ba355f55a188ae3ef13196b'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'fdda46a642fb55286ba355f55a188ae3ef13196b' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '2e68ae2b9fb3ce25c27126d54260784c31188f5b'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '2e68ae2b9fb3ce25c27126d54260784c31188f5b'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '2e68ae2b9fb3ce25c27126d54260784c31188f5b' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'c338d92b449ea8a10094fd0e8472a62cf470441b'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'c338d92b449ea8a10094fd0e8472a62cf470441b'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'c338d92b449ea8a10094fd0e8472a62cf470441b' has '1' tags: '[v0.3.1]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating tag 'v0.3.1': tag is a valid version according to the 'SEMVER' scheme and will be passed to the next evaluation steps. The tag is applied to commit 'c338d92b449ea8a10094fd0e8472a62cf470441b'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating tag 'v0.3.1': tag is less than previously selected previousVersion tag 'v0.3.2' so it will be ignored. The tag is applied to commit 'c338d92b449ea8a10094fd0e8472a62cf470441b'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '2681592da2498714fbf436f3be3a3cafc798d7d2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '2681592da2498714fbf436f3be3a3cafc798d7d2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '2681592da2498714fbf436f3be3a3cafc798d7d2' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '5bfe4ea2fefffc377945b5aebf74178bca1a5014'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '5bfe4ea2fefffc377945b5aebf74178bca1a5014'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '5bfe4ea2fefffc377945b5aebf74178bca1a5014' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '780e14a2dae4ffa29e86a2d4701f66c60c642c4d'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '780e14a2dae4ffa29e86a2d4701f66c60c642c4d'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '780e14a2dae4ffa29e86a2d4701f66c60c642c4d' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'ff61e4b60f97a46625ee3f211a36af54e63cdc07'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'ff61e4b60f97a46625ee3f211a36af54e63cdc07'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'ff61e4b60f97a46625ee3f211a36af54e63cdc07' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'a68cdfa9d5b1e7a609c263e8945da77983cfb19e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'a68cdfa9d5b1e7a609c263e8945da77983cfb19e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'a68cdfa9d5b1e7a609c263e8945da77983cfb19e' has '1' tags: '[v0.3.0]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating tag 'v0.3.0': tag is a valid version according to the 'SEMVER' scheme and will be passed to the next evaluation steps. The tag is applied to commit 'a68cdfa9d5b1e7a609c263e8945da77983cfb19e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating tag 'v0.3.0': tag is less than previously selected previousVersion tag 'v0.3.2' so it will be ignored. The tag is applied to commit 'a68cdfa9d5b1e7a609c263e8945da77983cfb19e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'ec57704c4d0b66f6e5c483ca06c555f1b295425e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'ec57704c4d0b66f6e5c483ca06c555f1b295425e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'ec57704c4d0b66f6e5c483ca06c555f1b295425e' has '1' tags: '[v0.2.0]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating tag 'v0.2.0': tag is a valid version according to the 'SEMVER' scheme and will be passed to the next evaluation steps. The tag is applied to commit 'ec57704c4d0b66f6e5c483ca06c555f1b295425e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="evaluating tag 'v0.2.0': tag is less than previously selected previousVersion tag 'v0.3.2' so it will be ignored. The tag is applied to commit 'ec57704c4d0b66f6e5c483ca06c555f1b295425e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'e2e7a50cd9e3396796b350e898fef06e9a6e419e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'e2e7a50cd9e3396796b350e898fef06e9a6e419e'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'e2e7a50cd9e3396796b350e898fef06e9a6e419e' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'baeeae8401bb67c149709d0836d484a72f5ec0dc'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'baeeae8401bb67c149709d0836d484a72f5ec0dc'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'baeeae8401bb67c149709d0836d484a72f5ec0dc' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'ee81db029ed6f0a25c7ef4ce702d0c751ef65004'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'ee81db029ed6f0a25c7ef4ce702d0c751ef65004'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'ee81db029ed6f0a25c7ef4ce702d0c751ef65004' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'e1e48de26dc57d300854f240a4d576e376340fd3'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'e1e48de26dc57d300854f240a4d576e376340fd3'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'e1e48de26dc57d300854f240a4d576e376340fd3' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '8c6a2a503ead53063c3e33b463aa72817942e148'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '8c6a2a503ead53063c3e33b463aa72817942e148'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '8c6a2a503ead53063c3e33b463aa72817942e148' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit '56f559eaa857bf545f548f8b8a69d0fa3c33c480'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit '56f559eaa857bf545f548f8b8a69d0fa3c33c480'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit '56f559eaa857bf545f548f8b8a69d0fa3c33c480' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving tags for commit 'eedb0fe89a9ad9dd53ceeb7f56c32601d78df711'"
time="2024-07-26T18:32:17+01:00" level=debug msg="stepping by commit 'eedb0fe89a9ad9dd53ceeb7f56c32601d78df711'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit 'eedb0fe89a9ad9dd53ceeb7f56c32601d78df711' has '0' tags: '[]'"
time="2024-07-26T18:32:17+01:00" level=debug msg="commit history walk reached the end"
time="2024-07-26T18:32:17+01:00" level=debug msg="walking the commit history finished. The release scope contains 5 commits."
time="2024-07-26T18:32:17+01:00" level=debug msg="after scanning the commit history the previousVersion is 'v0.3.2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="significant commits (bumping identifiers) since the previousVersion are '0'"
time="2024-07-26T18:32:17+01:00" level=debug msg="the commit history had no information about the primeVersion and primeVersionCommit but the release type doesn't use collapsed versioning, using the same values as the previousVersion and previousVersionCommit"
time="2024-07-26T18:32:17+01:00" level=debug msg="bumping component 'patch' on version '0.3.2'"
time="2024-07-26T18:32:17+01:00" level=debug msg="applying '1' extra identifiers defined by the release type to version '0.3.3'"
time="2024-07-26T18:32:17+01:00" level=debug msg="applying the 'chore' extra identifier to version '0.3.3'"
time="2024-07-26T18:32:17+01:00" level=debug msg="the extra identifier is defined by qualifier='chore' and value='5', which are resolved to qualifier='chore' and value='5'"
time="2024-07-26T18:32:17+01:00" level=debug msg="the version after applying the 'chore' extra identifier is '0.3.3-chore.5'"
time="2024-07-26T18:32:17+01:00" level=debug msg="computed version is: '0.3.3-chore.5'"
time="2024-07-26T18:32:17+01:00" level=info msg="Version: 'v0.3.3-chore.5'"
time="2024-07-26T18:32:17+01:00" level=debug msg="no version range check is required"
time="2024-07-26T18:32:17+01:00" level=debug msg="no version range check is performed"
time="2024-07-26T18:32:17+01:00" level=debug msg="version '0.3.3-chore.5' did not require version range checks"
time="2024-07-26T18:32:17+01:00" level=debug msg="checking if version 'v0.3.3-chore.5' is the latest in the repository"
time="2024-07-26T18:32:17+01:00" level=debug msg="retrieving all tags"
time="2024-07-26T18:32:17+01:00" level=debug msg="version 'v0.3.3-chore.5' is the latest in the repository since no newer version has been found"
time="2024-07-26T18:32:17+01:00" level=debug msg="storing the Infer command internal attributes to the State"
time="2024-07-26T18:32:17+01:00" level=debug msg="repository latest commit in HEAD branch is '1f720c46a57b47266f1a8c8ee17cd5e35677efbf'"
time="2024-07-26T18:32:17+01:00" level=debug msg="command 'INFER' finished."
time="2024-07-26T18:32:17+01:00" level=debug msg="storing the state to 'C:\\repositories\\others\\playground\\build\\.nyx-state.yaml'"
time="2024-07-26T18:32:17+01:00" level=debug msg="state stored to to 'C:\\repositories\\others\\playground\\build\\.nyx-state.yaml'"
branch = main
bump = patch
core version = false
latest version = true
new release = true
new version = true
scheme = SEMVER
timestamp = 1722015137687
current version = v0.3.3-chore.5
previous version = v0.3.2
prime version = v0.3.2
Glad to see it works.
The number of significant commits is not available through templates. Do you really need it?
I would like to have this same numbering, the one you have for pre-releases, but using only the main branch: As you can see in this image, I want to have the "fix and feat" to release a version, and "chore" would be a pre_release version. In my image you see v0.3.2 and v0.3.3 and in between, I would like to have v0.3.3-chore.1(2, 3, 4, 5...)
That's nearly impossible as long as you use the same branch because one commit becomes significant for the next. You need to use separate branches for that, leveraging pre-releases for consistent numbering.
Hi,
My problem is this. Every commit we do into the main branch, creates a docker image and we publish this image and deploy. Everything is working with nyx, when we have the usual feat/fix comments on the commit.
Our problem, is the chore(deps) commit, created by renovatebot, we want to keep them as chore, but we want the version to be bumped with a pre-release name and the number of commits since last version.
Is this possible? My current configuration is this: