(authCfg gh.AuthConfig, hostname string)
| 16 | } |
| 17 | |
| 18 | func AuthTokenWriteable(authCfg gh.AuthConfig, hostname string) (string, bool) { |
| 19 | cred := authCfg.ActiveToken(hostname) |
| 20 | return cred.Source, (cred.Token == "" || !strings.HasSuffix(cred.Source, "_TOKEN")) |
| 21 | } |
no test coverage detected