diff --git a/cmd/dashboard/controller/oauth2.go b/cmd/dashboard/controller/oauth2.go index 15e7779..8682e6d 100644 --- a/cmd/dashboard/controller/oauth2.go +++ b/cmd/dashboard/controller/oauth2.go @@ -9,7 +9,7 @@ import ( "github.com/naiba/com" "github.com/gin-gonic/gin" - GitHubAPI "github.com/google/go-github/v28/github" + GitHubAPI "github.com/google/go-github/github" "golang.org/x/oauth2" "github.com/naiba/nezha/model" diff --git a/go.mod b/go.mod index 49557ad..24c22ca 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/fsnotify/fsnotify v1.4.9 github.com/gin-gonic/gin v1.6.3 github.com/golang/protobuf v1.4.2 - github.com/google/go-github/v28 v28.1.1 + github.com/google/go-github v17.0.0+incompatible github.com/gorilla/websocket v1.4.2 github.com/jinzhu/gorm v1.9.16 github.com/naiba/com v0.0.0-20191104074000-318339dc72a5 diff --git a/go.sum b/go.sum index 6ee6ca0..e1158dc 100644 --- a/go.sum +++ b/go.sum @@ -158,8 +158,8 @@ github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1 h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-github/v28 v28.1.1 h1:kORf5ekX5qwXO2mGzXXOjMe/g6ap8ahVe0sBEulhSxo= -github.com/google/go-github/v28 v28.1.1/go.mod h1:bsqJWQX05omyWVmc00nEUql9mhQyv38lDZ8kPZcQVoM= +github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY= +github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= github.com/google/go-github/v30 v30.1.0 h1:VLDx+UolQICEOKu2m4uAoMti1SxuEBAl7RSEG16L+Oo= github.com/google/go-github/v30 v30.1.0/go.mod h1:n8jBpHl45a/rlBUtRJMOG4GhNADUQFEufcolZ95JfU8= github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= diff --git a/model/user.go b/model/user.go index 190f23a..d6a0129 100644 --- a/model/user.go +++ b/model/user.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/google/go-github/v28/github" + "github.com/google/go-github/github" "github.com/naiba/com" )