Skip to content

Commit fd85386

Browse files
committed
update golang to v1.26.2
Signed-off-by: André Martins <andre@cilium.io>
1 parent 05e782c commit fd85386

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/library/golang:1.24.1@sha256:52ff1b35ff8de185bf9fd26c70077190cd0bed1e9f16a2d498ce907e5c421268 as builder
1+
FROM docker.io/library/golang:1.26.2@sha256:b54cbf583d390341599d7bcbc062425c081105cc5ef6d170ced98ef9d047c716 as builder
22
LABEL maintainer="maintainer@cilium.io"
33
ADD . /go/src/github.com/cilium/github-actions
44
WORKDIR /go/src/github.com/cilium/github-actions

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/cilium/github-actions
22

3-
go 1.25.0
3+
go 1.26.0
44

55
require (
66
github.com/bndr/gojenkins v1.2.0

pkg/github/automerge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (c *Client) AutoMerge(
176176
ctx, cancel = context.WithTimeout(context.Background(), 30*time.Second)
177177
defer cancel()
178178
_, _, err = c.GHClient.Issues.CreateComment(ctx, owner, repoName, prNumber, &gh.IssueComment{
179-
Body: func() *string { a := fmt.Sprintf("Setting %s to let a human merge this PR.", cfg.Label); return &a }(),
179+
Body: func() *string { ; return new(fmt.Sprintf("Setting %s to let a human merge this PR.", cfg.Label)) }(),
180180
})
181181
if err != nil {
182182
return err

pkg/github/comments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (c *Client) CommentAndOpenIssue(ctx context.Context, owner, repo string, is
4545
}
4646

4747
_, _, err = c.GHClient.Issues.Edit(ctx, owner, repo, issueNumber, &gh.IssueRequest{
48-
State: func() *string { a := "open"; return &a }(),
48+
State: func() *string { ; return new("open") }(),
4949
})
5050

5151
return err

pkg/github/mergeable.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (c *Client) UpdateMergeabilityCheck(
171171
nextPage := 0
172172
for {
173173
lc, resp, err := c.GHClient.Checks.ListCheckRunsForRef(ctx, owner, repoName, head.GetSHA(), &gh.ListCheckRunsOptions{
174-
CheckName: func() *string { a := checkerName; return &a }(),
174+
CheckName: func() *string { ; return new(checkerName) }(),
175175
ListOptions: gh.ListOptions{
176176
Page: nextPage,
177177
},
@@ -188,7 +188,7 @@ func (c *Client) UpdateMergeabilityCheck(
188188
_, _, err := c.GHClient.Checks.UpdateCheckRun(ctx, owner, repoName, cr.GetID(), gh.UpdateCheckRunOptions{
189189
Name: checkerName,
190190
ExternalID: head.SHA,
191-
Status: func() *string { a := "completed"; return &a }(),
191+
Status: func() *string { ; return new("completed") }(),
192192
Conclusion: &conclusion,
193193
CompletedAt: &gh.Timestamp{
194194
Time: time.Now(),
@@ -227,7 +227,7 @@ func (c *Client) UpdateMergeabilityCheck(
227227
Name: checkerName,
228228
HeadSHA: head.GetSHA(),
229229
ExternalID: head.SHA,
230-
Status: func() *string { a := "completed"; return &a }(),
230+
Status: func() *string { ; return new("completed") }(),
231231
Conclusion: &conclusion,
232232
CompletedAt: &gh.Timestamp{
233233
Time: time.Now(),

0 commit comments

Comments
 (0)