mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 13:08:17 +00:00
Do not limit the number of tags returned when finding previous version
This commit is contained in:
parent
02763ed6d3
commit
5a79aff975
4 changed files with 4 additions and 4 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
|
@ -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
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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')
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue