mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 01:58:56 +00:00 
			
		
		
		
	[Vendor] upgrade google/go-github to v32.1.0 (#12361)
* upgrate go-github client to v32.1.0 * migrate
This commit is contained in:
		| @@ -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, | ||||
| 		}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user