dummy commit 6 MAJOR-go

This commit is contained in:
Vagharshak Baghdasaryan 2025-06-10 17:42:15 +02:00
parent 7a1fdf3584
commit 69163bf56e
5 changed files with 26 additions and 145 deletions

View file

@ -48,6 +48,7 @@ class DefaultLastReleaseResolver {
currentTag = tagFormatter.IsValid(currentTag) ? currentTag : '';
const isTagged = currentTag !== '';
const [currentMajor, currentMinor, currentPatch] = !!currentTag ? tagFormatter.Parse(currentTag) : [null, null, null];
core.info("VAGO DefaultLastReleaseResolver.ResolveAsync: currentTag: " + currentTag + ", currentMajor: " + currentMajor + ", currentMinor: " + currentMinor + ", currentPatch: " + currentPatch);
let tagsCount = 0;
let tag = '';
try {
@ -86,11 +87,13 @@ class DefaultLastReleaseResolver {
}
}
const [major, minor, patch] = tagFormatter.Parse('');
core.info("VAGO tag was empty: " + major + ", " + minor + ", " + patch);
// no release tags yet, use the initial commit as the root
return new ReleaseInformation_1.ReleaseInformation(major, minor, patch, '', currentMajor, currentMinor, currentPatch, isTagged);
}
// parse the version tag
const [major, minor, patch] = tagFormatter.Parse(tag);
core.info("VAGO tag was not empty: " + tag + ", " + major + ", " + minor + ", " + patch);
const root = yield (0, CommandRunner_1.cmd)('git', `merge-base`, tag, current);
return new ReleaseInformation_1.ReleaseInformation(major, minor, patch, root.trim(), currentMajor, currentMinor, currentPatch, isTagged);
});