Skip to content

Commit

Permalink
Fixed version when calculating new and there are deploys for the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Oct 1, 2024
1 parent 1513232 commit 17a06aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.0.122 (Sep 30, 2024)
# 0.0.122 (Oct 01, 2024)
* Added `commitSha` when created deploy so that Nullstone can add commit info to deploy activity.
* Added detection of automation tool (e.g. CircleCI, Github Actions, Gitlab, etc.) when creating deploy.

Expand Down
1 change: 1 addition & 0 deletions version/calc_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func CalcNew(ctx context.Context, pusher app.Pusher) (Info, error) {
// otherwise we will append the sequence number
if seq > -1 {
result.Version = fmt.Sprintf("%s-%d", result.ShortCommitSha(), seq+1)
return result, nil
}

result.Version = result.ShortCommitSha()
Expand Down

0 comments on commit 17a06aa

Please sign in to comment.