Skip to content

Commit 922d965

Browse files
committed
add comment with source
1 parent 4728e74 commit 922d965

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/migrations/github.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,9 @@ func (g *GithubDownloaderV3) FormatCloneURL(opts MigrateOptions, remoteAddr stri
880880
return "", err
881881
}
882882
if len(opts.AuthToken) > 0 {
883+
// "multiple tokens" are used to benefit more "API rate limit quota"
884+
// git clone doesn't count for rate limits, so only use the first token.
885+
// source: https://github.com/orgs/community/discussions/44515
883886
u.User = url.UserPassword("oauth2", strings.Split(opts.AuthToken, ",")[0])
884887
}
885888
return u.String(), nil

0 commit comments

Comments
 (0)