(org *database.Organization)
| 436 | } |
| 437 | |
| 438 | func quotaManagedRepos(org *database.Organization) int { |
| 439 | if org.QuotaProjects >= 0 { |
| 440 | // allow additional 10 repos for cases where we provision a github repo but it is not used because of errors/user bailed out etc/unused repos were not garbage collected |
| 441 | return org.QuotaProjects + 10 |
| 442 | } |
| 443 | return math.MaxInt |
| 444 | } |
| 445 | |
| 446 | func retryableHTTPRoundTripper() http.RoundTripper { |
| 447 | retryClient := retryablehttp.NewClient() |
no outgoing calls
no test coverage detected