(username string)
| 301 | } |
| 302 | |
| 303 | func (c *RepoAccessCache) isTrustedBot(username string) bool { |
| 304 | _, ok := c.trustedBotLogins[strings.ToLower(username)] |
| 305 | return ok |
| 306 | } |
| 307 | |
| 308 | func cacheKey(owner, repo string) string { |
| 309 | return fmt.Sprintf("%s/%s", strings.ToLower(owner), strings.ToLower(repo)) |