Skip to content

Commit

Permalink
feat: add message if there were no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
talwat committed Mar 19, 2023
1 parent d6a27f0 commit cb4c3a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/global/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package global

//nolint:gochecknoglobals
var (
Version = "0.14.0"
Version = "0.14.1"

// Global options.

Expand Down
8 changes: 6 additions & 2 deletions internal/jarfiles/paper/paper.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ func GetURL(versionInput string, buildID string) (string, Build) {
// Log final info
log.Log("using paper build %d (%s), changes:", build.Build, formattedTime)

for _, change := range build.Changes {
log.RawLog(" (%s) %s\n", change.Commit, change.Summary)
if len(build.Changes) == 0 {
log.RawLog(" no changes")
} else {
for _, change := range build.Changes {
log.RawLog(" (%s) %s\n", change.Commit, change.Summary)
}
}

return formatURL(version, build), build
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.0
0.14.1

0 comments on commit cb4c3a7

Please sign in to comment.