Do not limit the number of tags returned when finding previous version

This commit is contained in:
Paul Hatcherian 2022-12-20 07:02:54 -06:00
parent 02763ed6d3
commit 5a79aff975
4 changed files with 4 additions and 4 deletions

2
dist/index.js vendored
View file

@ -749,7 +749,7 @@ class DefaultLastReleaseResolver {
if (!!currentTag) { if (!!currentTag) {
// If we already have the current branch tagged, we are checking for the previous one // If we already have the current branch tagged, we are checking for the previous one
// so that we will have an accurate increment (assuming the new tag is the expected one) // so that we will have an accurate increment (assuming the new tag is the expected one)
const command = `git for-each-ref --count=2 --sort=-v:*refname --format=%(refname:short) --merged=${current} ${refPrefixPattern}${releasePattern}`; const command = `git for-each-ref --sort=-v:*refname --format=%(refname:short) --merged=${current} ${refPrefixPattern}${releasePattern}`;
tag = yield (0, CommandRunner_1.cmd)(command); tag = yield (0, CommandRunner_1.cmd)(command);
tag = tag tag = tag
.split('\n') .split('\n')

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -52,7 +52,7 @@ class DefaultLastReleaseResolver {
if (!!currentTag) { if (!!currentTag) {
// If we already have the current branch tagged, we are checking for the previous one // If we already have the current branch tagged, we are checking for the previous one
// so that we will have an accurate increment (assuming the new tag is the expected one) // so that we will have an accurate increment (assuming the new tag is the expected one)
const command = `git for-each-ref --count=2 --sort=-v:*refname --format=%(refname:short) --merged=${current} ${refPrefixPattern}${releasePattern}`; const command = `git for-each-ref --sort=-v:*refname --format=%(refname:short) --merged=${current} ${refPrefixPattern}${releasePattern}`;
tag = yield (0, CommandRunner_1.cmd)(command); tag = yield (0, CommandRunner_1.cmd)(command);
tag = tag tag = tag
.split('\n') .split('\n')

View file

@ -29,7 +29,7 @@ export class DefaultLastReleaseResolver implements LastReleaseResolver {
if (!!currentTag) { if (!!currentTag) {
// If we already have the current branch tagged, we are checking for the previous one // If we already have the current branch tagged, we are checking for the previous one
// so that we will have an accurate increment (assuming the new tag is the expected one) // so that we will have an accurate increment (assuming the new tag is the expected one)
const command = `git for-each-ref --count=2 --sort=-v:*refname --format=%(refname:short) --merged=${current} ${refPrefixPattern}${releasePattern}`; const command = `git for-each-ref --sort=-v:*refname --format=%(refname:short) --merged=${current} ${refPrefixPattern}${releasePattern}`;
tag = await cmd(command); tag = await cmd(command);
tag = tag tag = tag
.split('\n') .split('\n')