Skip to content

Commit 6348360

Browse files
authored
Merge pull request #22 from NETWAYS/chore/ci
Use latest stable Go in CI
2 parents 7cb0224 + c9678cc commit 6348360

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.24
22+
go-version: stable
23+
check-latest: true
2324

2425
- name: Test
2526
run: go test -v ./...

cmd/root.go

+3-6
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,11 @@ func handleProblemNotification(ctx context.Context, c *client.Client, ticket zam
230230

231231
title.WriteString("[Problem] ")
232232

233-
//nolint:perfsprint
234-
title.WriteString(fmt.Sprintf("State: %s for", cliConfig.IcingaCheckState))
235-
//nolint:perfsprint
236-
title.WriteString(fmt.Sprintf(" Host: %s", cliConfig.IcingaHostname))
233+
title.WriteString("State: " + cliConfig.IcingaCheckState + " for")
234+
title.WriteString(" Host: " + cliConfig.IcingaHostname)
237235

238236
if cliConfig.IcingaServiceName != "" {
239-
//nolint:perfsprint
240-
title.WriteString(fmt.Sprintf(" Service: %s", cliConfig.IcingaServiceName))
237+
title.WriteString(" Service: " + cliConfig.IcingaServiceName)
241238
}
242239

243240
ticket.Title = title.String()

0 commit comments

Comments
 (0)