Skip to content

Commit

Permalink
fix: Main commit message (#72)
Browse files Browse the repository at this point in the history
* fix: Main commit message

* fix: Tests
  • Loading branch information
tsmalls93 authored Dec 12, 2024
1 parent 3e98705 commit eb1cfc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion task/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func commitMessage(changes []krm.Change) (string, error) {
seen := make(map[string]struct{})

msg := strings.Builder{}
if _, err := msg.WriteString("chore(kobold):\n"); err != nil {
if _, err := msg.WriteString("chore(kobold): Update image refs\n"); err != nil {
return "", fmt.Errorf("write header: %w", err)
}

Expand Down
6 changes: 3 additions & 3 deletions task/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestGetCommitMessage(t *testing.T) {
},
},
},
want: "chore(kobold):\n * busybox: busybox:1.0.0 -> busybox:1.0.1",
want: "chore(kobold): Update image refs\n * busybox: busybox:1.0.0 -> busybox:1.0.1",
wantErr: false,
},
{
Expand All @@ -43,7 +43,7 @@ func TestGetCommitMessage(t *testing.T) {
},
},
},
want: "chore(kobold):\n * busybox: busybox:1.0.0 -> busybox:1.0.1\n * somerepo: somerepo:2.0.0 -> somerepo:2.0.1",
want: "chore(kobold): Update image refs\n * busybox: busybox:1.0.0 -> busybox:1.0.1\n * somerepo: somerepo:2.0.0 -> somerepo:2.0.1",
wantErr: false,
},
{
Expand All @@ -60,7 +60,7 @@ func TestGetCommitMessage(t *testing.T) {
},
},
},
want: "chore(kobold):\n * busybox: busybox:1.0.0 -> busybox:1.0.1",
want: "chore(kobold): Update image refs\n * busybox: busybox:1.0.0 -> busybox:1.0.1",
wantErr: false,
},
}
Expand Down

0 comments on commit eb1cfc6

Please sign in to comment.