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
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
entgo.io/ent v0.14.6
github.com/davecgh/go-spew v1.1.1
github.com/go-resty/resty/v2 v2.17.2
github.com/google/go-github/v85 v85.0.0
github.com/google/go-github/v88 v88.0.0
github.com/jaevor/go-nanoid v1.4.0
github.com/kataras/go-sessions/v3 v3.3.1
github.com/labstack/echo/v5 v5.1.1
Expand All @@ -31,6 +31,7 @@ require (
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/go-github/v84 v84.0.0 // indirect
github.com/google/go-github/v85 v85.0.0 // indirect
github.com/google/go-querystring v1.2.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ github.com/google/go-github/v84 v84.0.0 h1:I/0Xn5IuChMe8TdmI2bbim5nyhaRFJ7DEdzmD
github.com/google/go-github/v84 v84.0.0/go.mod h1:WwYL1z1ajRdlaPszjVu/47x1L0PXukJBn73xsiYrRRQ=
github.com/google/go-github/v85 v85.0.0 h1:1+TLFX/akTFXK7o9Z9uAloQGufOn4ySa5DItUM1VWT4=
github.com/google/go-github/v85 v85.0.0/go.mod h1:jYkBnqN+SzR2A2fGKYfbt6DEEQAyxeK0Q2XpPV9ZFsU=
github.com/google/go-github/v88 v88.0.0 h1:dZA9IKkPK1eXZj4ypngnpRj5FwdpTv4whix2PrQMP7M=
github.com/google/go-github/v88 v88.0.0/go.mod h1:rufTDgn2N45wjhukLTyxmvc9nilSp3mr3Rgtt6b1MPw=
github.com/google/go-querystring v1.2.0 h1:yhqkPbu2/OH+V9BfpCVPZkNmUXhb2gBxJArfhIxNtP0=
github.com/google/go-querystring v1.2.0/go.mod h1:8IFJqpSRITyJ8QhQ13bmbeMBDfmeEJZD5A0egEOmkqU=
github.com/google/renameio v0.1.0 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=
Expand Down
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"

"github.com/davecgh/go-spew/spew"
"github.com/google/go-github/v85/github"
"github.com/google/go-github/v88/github"
"github.com/labstack/echo/v5"
"github.com/palantir/go-githubapp/githubapp"
"github.com/rs/zerolog/log"
Expand Down
2 changes: 1 addition & 1 deletion oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

"entgo.io/ent/dialect/sql"
"github.com/go-resty/resty/v2"
"github.com/google/go-github/v85/github"
"github.com/google/go-github/v88/github"
"github.com/kataras/go-sessions/v3"
"github.com/labstack/echo/v5"
"github.com/rs/zerolog/log"
Expand Down Expand Up @@ -51,7 +51,7 @@
return errgo.Trace(err)
}

gh := github.NewClient(oauth2.NewClient(context.TODO(), oauth2.StaticTokenSource(token)))

Check failure on line 54 in oauth.go

View workflow job for this annotation

GitHub Actions / docker

cannot use oauth2.NewClient(context.TODO(), oauth2.StaticTokenSource(token)) (value of type *http.Client) as "github.com/google/go-github/v88/github".ClientOptionsFunc value in argument to github.NewClient

Check failure on line 54 in oauth.go

View workflow job for this annotation

GitHub Actions / docker

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 54 in oauth.go

View workflow job for this annotation

GitHub Actions / vulnerability-scan

assignment mismatch: 1 variable but github.NewClient returns 2 values

Check failure on line 54 in oauth.go

View workflow job for this annotation

GitHub Actions / vulnerability-scan

cannot use oauth2.NewClient(context.TODO(), oauth2.StaticTokenSource(token)) (value of type *http.Client) as "github.com/google/go-github/v88/github".ClientOptionsFunc value in argument to github.NewClient

u, _, err := gh.Users.Get(c.Request().Context(), "")
if err != nil {
Expand Down
Loading