diff options
author | 6543 <6543@obermui.de> | 2020-07-31 16:22:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 15:22:34 +0100 |
commit | b3e06523c1c4c960b9ef4fd2b2f409166100a9ea (patch) | |
tree | de303271c6e2b2ccf3e636bfe3f7c2488bc3b291 /modules/migrations | |
parent | 999ae61d0134781c329aabd6efc02db06e5fb77c (diff) | |
download | gitea-b3e06523c1c4c960b9ef4fd2b2f409166100a9ea.tar.gz gitea-b3e06523c1c4c960b9ef4fd2b2f409166100a9ea.zip |
[Vendor] upgrade google/go-github to v32.1.0 (#12361)
* upgrate go-github client to v32.1.0
* migrate
Diffstat (limited to 'modules/migrations')
-rw-r--r-- | modules/migrations/error.go | 2 | ||||
-rw-r--r-- | modules/migrations/github.go | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/migrations/error.go b/modules/migrations/error.go index a48484d156..b2e2315fc8 100644 --- a/modules/migrations/error.go +++ b/modules/migrations/error.go @@ -8,7 +8,7 @@ package migrations import ( "errors" - "github.com/google/go-github/v24/github" + "github.com/google/go-github/v32/github" ) var ( diff --git a/modules/migrations/github.go b/modules/migrations/github.go index b6bdab09f4..97d62b994f 100644 --- a/modules/migrations/github.go +++ b/modules/migrations/github.go @@ -18,7 +18,7 @@ import ( "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/util" - "github.com/google/go-github/v24/github" + "github.com/google/go-github/v32/github" "golang.org/x/oauth2" ) @@ -364,7 +364,7 @@ func (g *GithubDownloaderV3) GetIssues(page, perPage int) ([]*base.Issue, bool, } var labels = make([]*base.Label, 0, len(issue.Labels)) for _, l := range issue.Labels { - labels = append(labels, convertGithubLabel(&l)) + labels = append(labels, convertGithubLabel(l)) } var email string @@ -425,8 +425,8 @@ func (g *GithubDownloaderV3) GetComments(issueNumber int64) ([]*base.Comment, er asc = "asc" ) opt := &github.IssueListCommentsOptions{ - Sort: created, - Direction: asc, + Sort: &created, + Direction: &asc, ListOptions: github.ListOptions{ PerPage: 100, }, |