mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 18:58:38 +00:00
Fix various typos (#18219)
Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby,te,unknwon` Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@@ -64,7 +64,7 @@ type codebaseUser struct {
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
// CodebaseDownloader implements a Downloader interface to get repository informations
|
||||
// CodebaseDownloader implements a Downloader interface to get repository information
|
||||
// from Codebase
|
||||
type CodebaseDownloader struct {
|
||||
base.NullDownloader
|
||||
@@ -111,7 +111,7 @@ func NewCodebaseDownloader(ctx context.Context, projectURL *url.URL, project, re
|
||||
return downloader
|
||||
}
|
||||
|
||||
// FormatCloneURL add authentification into remote URLs
|
||||
// FormatCloneURL add authentication into remote URLs
|
||||
func (d *CodebaseDownloader) FormatCloneURL(opts base.MigrateOptions, remoteAddr string) (string, error) {
|
||||
return opts.CloneAddr, nil
|
||||
}
|
||||
|
@@ -254,7 +254,7 @@ func (g *GogsDownloader) GetTopics() ([]string, error) {
|
||||
return []string{}, nil
|
||||
}
|
||||
|
||||
// FormatCloneURL add authentification into remote URLs
|
||||
// FormatCloneURL add authentication into remote URLs
|
||||
func (g *GogsDownloader) FormatCloneURL(opts MigrateOptions, remoteAddr string) (string, error) {
|
||||
if len(opts.AuthToken) > 0 || len(opts.AuthUsername) > 0 {
|
||||
u, err := url.Parse(remoteAddr)
|
||||
|
@@ -69,7 +69,7 @@ type onedevUser struct {
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
// OneDevDownloader implements a Downloader interface to get repository informations
|
||||
// OneDevDownloader implements a Downloader interface to get repository information
|
||||
// from OneDev
|
||||
type OneDevDownloader struct {
|
||||
base.NullDownloader
|
||||
|
Reference in New Issue
Block a user