Skip to content
Open
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 @@ -8,7 +8,7 @@
"os"
"strings"

"github.com/google/go-github/v89/github"
"github.com/google/go-github/v90/github"
"github.com/la3rence/OpsBot/utils"
"golang.org/x/oauth2"
)
Expand Down Expand Up @@ -256,7 +256,7 @@

submitReview, _, err := client.PullRequests.SubmitReview(ctx, owner, repo, issueNumber,
review.GetID(),
&github.PullRequestReviewRequest{

Check failure on line 259 in api/index.go

View workflow job for this annotation

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

cannot use &github.PullRequestReviewRequest{…} (value of type *github.PullRequestReviewRequest) as github.PullRequestSubmitReviewRequest value in argument to client.PullRequests.SubmitReview

Check failure on line 259 in api/index.go

View workflow job for this annotation

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

cannot use &github.PullRequestReviewRequest{…} (value of type *github.PullRequestReviewRequest) as github.PullRequestSubmitReviewRequest value in argument to client.PullRequests.SubmitReview
Event: &approveEventName,
},
)
Expand Down Expand Up @@ -304,9 +304,9 @@
if color == "" {
color = labelColorMapping["default"]
}
_, _, err := githubClient.Issues.CreateLabel(ctx, owner, repo, &github.Label{

Check failure on line 307 in api/index.go

View workflow job for this annotation

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

cannot use &github.Label{…} (value of type *github.Label) as github.CreateIssueLabelRequest value in argument to githubClient.Issues.CreateLabel

Check failure on line 307 in api/index.go

View workflow job for this annotation

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

cannot use &github.Label{…} (value of type *github.Label) as github.CreateIssueLabelRequest value in argument to githubClient.Issues.CreateLabel
Name: &param,

Check failure on line 308 in api/index.go

View workflow job for this annotation

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

cannot use &param (value of type *string) as string value in struct literal

Check failure on line 308 in api/index.go

View workflow job for this annotation

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

cannot use &param (value of type *string) as string value in struct literal
Color: &color,

Check failure on line 309 in api/index.go

View workflow job for this annotation

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

cannot use &color (value of type *string) as string value in struct literal

Check failure on line 309 in api/index.go

View workflow job for this annotation

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

cannot use &color (value of type *string) as string value in struct literal
})
if err != nil {
log.Printf("Failed to create label %s: %v", param, err)
Expand Down Expand Up @@ -489,7 +489,7 @@
} else {
state = "closed"
}
edit, response, err := githubClient.Issues.Edit(ctx, owner, repo, number, &github.IssueRequest{

Check failure on line 492 in api/index.go

View workflow job for this annotation

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

undefined: github.IssueRequest

Check failure on line 492 in api/index.go

View workflow job for this annotation

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

githubClient.Issues.Edit undefined (type *github.IssuesService has no field or method Edit)

Check failure on line 492 in api/index.go

View workflow job for this annotation

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

undefined: github.IssueRequest

Check failure on line 492 in api/index.go

View workflow job for this annotation

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

githubClient.Issues.Edit undefined (type *github.IssuesService has no field or method Edit)
State: &state,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/la3rence/OpsBot
go 1.26.0

require (
github.com/google/go-github/v89 v89.0.0
github.com/google/go-github/v90 v90.0.0
golang.org/x/oauth2 v0.36.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.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
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/v89 v89.0.0 h1:35bEK5XoEcF3PZrlVbl9XN63f5BcJRA/UGkxeC9xPg0=
github.com/google/go-github/v89 v89.0.0/go.mod h1:QLcbU0ipeAqQuR5KSg8c2lql4Qk1EwJ2dWz/0rP4Nho=
github.com/google/go-github/v90 v90.0.0 h1:EnX9HvTfqvuJbUSWu1/jLrYH6JJLMz0w0qfQVbTxPzE=
github.com/google/go-github/v90 v90.0.0/go.mod h1:pLzt1FZURZyoTHT5/Z1UQY3b9fYyrbXH6aj7X+qgID4=
github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0=
github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU=
golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs=
Expand Down
Loading