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/v86/github"
"github.com/google/go-github/v87/github"
"github.com/la3rence/OpsBot/utils"
"golang.org/x/oauth2"
)
Expand Down Expand Up @@ -88,7 +88,7 @@
&oauth2.Token{AccessToken: token},
)
tc := oauth2.NewClient(ctx, ts)
return github.NewClient(tc), nil

Check failure on line 91 in api/index.go

View workflow job for this annotation

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

cannot use tc (variable of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 91 in api/index.go

View workflow job for this annotation

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

multiple-value github.NewClient(tc) (value of type (*github.Client, error)) in single-value context

Check failure on line 91 in api/index.go

View workflow job for this annotation

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

cannot use tc (variable of type *http.Client) as github.ClientOptionsFunc value in argument to github.NewClient

Check failure on line 91 in api/index.go

View workflow job for this annotation

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

multiple-value github.NewClient(tc) (value of type (*github.Client, error)) in single-value context
}

// this Handler used to be the serverless function
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/v86 v86.0.0
github.com/google/go-github/v87 v87.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/v86 v86.0.0 h1:S/6aANJhwRm8EQmGKVML3j41yq0h2BsTP8FnDkO7kcA=
github.com/google/go-github/v86 v86.0.0/go.mod h1:zKv1l4SwDXNFMGByi2FWkq71KwSXqj/eQRZuqtmcot8=
github.com/google/go-github/v87 v87.0.0 h1:9Ck3dcOxWJyfsN8tzdah4YvmqB/7ZsstMglv/PkOsl0=
github.com/google/go-github/v87 v87.0.0/go.mod h1:hGUoT5pwm/ck5uLL+wroSVQfg8mpe+buxllCcGV4VaM=
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