mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Go 1.19 format (#20758)
* 1.19 gofumpt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change CSV test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Commit whitespace fixes from @zeripath Co-authored-by: zeripath <art27@cantab.net> * Update emoji Signed-off-by: jolheiser <john.olheiser@gmail.com> * bump swagger & fix generate-swagger Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		| @@ -70,8 +70,9 @@ type GitlabDownloader struct { | ||||
| } | ||||
|  | ||||
| // NewGitlabDownloader creates a gitlab Downloader via gitlab API | ||||
| //   Use either a username/password, personal token entered into the username field, or anonymous/public access | ||||
| //   Note: Public access only allows very basic access | ||||
| // | ||||
| //	Use either a username/password, personal token entered into the username field, or anonymous/public access | ||||
| //	Note: Public access only allows very basic access | ||||
| func NewGitlabDownloader(ctx context.Context, baseURL, repoPath, username, password, token string) (*GitlabDownloader, error) { | ||||
| 	gitlabClient, err := gitlab.NewClient(token, gitlab.WithBaseURL(baseURL), gitlab.WithHTTPClient(NewMigrationHTTPClient())) | ||||
| 	// Only use basic auth if token is blank and password is NOT | ||||
| @@ -353,7 +354,8 @@ type gitlabIssueContext struct { | ||||
| } | ||||
|  | ||||
| // GetIssues returns issues according start and limit | ||||
| //   Note: issue label description and colors are not supported by the go-gitlab library at this time | ||||
| // | ||||
| //	Note: issue label description and colors are not supported by the go-gitlab library at this time | ||||
| func (g *GitlabDownloader) GetIssues(page, perPage int) ([]*base.Issue, bool, error) { | ||||
| 	state := "all" | ||||
| 	sort := "asc" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user