Skip to content

Commit

Permalink
3.3.1 fixed version tagging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skifahrer committed Feb 8, 2024
1 parent 8f8aa67 commit 48f56a2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 23 deletions.
2 changes: 1 addition & 1 deletion dist/bratiska-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const tag_1 = require("./tag");
const label_1 = require("./label");
const common_1 = require("./common");
const helpers = __importStar(require("./helpers"));
const version = "3.3.0";
const version = "3.3.1";
const deploy = new deploy_1.Deploy();
const tag = new tag_1.Tag();
const common = new common_1.Common();
Expand Down
12 changes: 2 additions & 10 deletions dist/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,7 @@ function increment_bug(version) {
if (terms.length != 3) {
return version;
}
if (++terms[2] > 99) {
++terms[1];
terms[2] = 0;
}
++terms[2];
return terms.join(".");
}
function calculate_version_diff(v1, v2) {
Expand All @@ -606,13 +603,8 @@ function increment_feature(version) {
if (terms.length != 3) {
return version;
}
if (++terms[1] > 9) {
++terms[0];
terms[1] = 0;
++terms[1];
terms[2] = 0;
} else {
terms[2] = 0;
}
return terms.join(".");
}
function increment_major(version) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bratiska-cli",
"version": "3.3.0",
"version": "3.3.1",
"description": "Simple CLI for deploying Bratislava apps to kubernetes",
"preferGlobal": true,
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion src/bratiska-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Label } from './label';
import { Common } from './common';
import * as helpers from './helpers';

const version = "3.3.0";
const version = "3.3.1";
const deploy = new Deploy();
const tag = new Tag();
const common = new Common();
Expand Down
12 changes: 2 additions & 10 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -653,10 +653,7 @@ function increment_bug(version: string) {
if (terms.length != 3) {
return version;
}
if (++terms[2] > 99) {
++terms[1];
terms[2] = 0;
}
++terms[2];
return terms.join('.');
}

Expand Down Expand Up @@ -684,13 +681,8 @@ function increment_feature(version: string) {
if (terms.length != 3) {
return version;
}
if (++terms[1] > 9) {
++terms[0];
terms[1] = 0;
++terms[1];
terms[2] = 0;
} else {
terms[2] = 0;
}
return terms.join('.');
}

Expand Down

0 comments on commit 48f56a2

Please sign in to comment.