Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"strings"

"github.com/Lonor/OpsBot/utils"
"github.com/google/go-github/v74/github"
"github.com/google/go-github/v80/github"
"golang.org/x/oauth2"
)

Expand Down Expand Up @@ -349,7 +349,7 @@
log.Println(mergeComment)
sendComment(githubClient, owner, repo, number, mergeComment)
} else {
log.Printf("start to " + commitMsg + "\n")

Check failure on line 352 in api/index.go

View workflow job for this annotation

GitHub Actions / test-cache

non-constant format string in call to log.Printf

Check failure on line 352 in api/index.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, ubuntu-latest)

non-constant format string in call to log.Printf

Check failure on line 352 in api/index.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, ubuntu-latest)

non-constant format string in call to log.Printf

Check failure on line 352 in api/index.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, ubuntu-latest)

non-constant format string in call to log.Printf

Check failure on line 352 in api/index.go

View workflow job for this annotation

GitHub Actions / test-cache

non-constant format string in call to log.Printf

Check failure on line 352 in api/index.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, ubuntu-latest)

non-constant format string in call to log.Printf
mergeResult, _, err := githubClient.PullRequests.Merge(ctx, owner, repo, number, commitMsg, &github.PullRequestOptions{
MergeMethod: mergeMethod, // optional with string: "merge", "squash", and "rebase"
})
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/Lonor/OpsBot

go 1.23.0
go 1.24.0

toolchain go1.24.5

require (
github.com/google/go-github/v74 v74.0.0
github.com/google/go-github/v80 v80.0.0
golang.org/x/oauth2 v0.30.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/google/go-github/v74 v74.0.0 h1:yZcddTUn8DPbj11GxnMrNiAnXH14gNs559AsUpNpPgM=
github.com/google/go-github/v74 v74.0.0/go.mod h1:ubn/YdyftV80VPSI26nSJvaEsTOnsjrxG3o9kJhcyak=
github.com/google/go-github/v80 v80.0.0 h1:BTyk3QOHekrk5VF+jIGz1TNEsmeoQG9K/UWaaP+EWQs=
github.com/google/go-github/v80 v80.0.0/go.mod h1:pRo4AIMdHW83HNMGfNysgSAv0vmu+/pkY8nZO9FT9Yo=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
Expand Down
Loading