CheckHost refuses GitHub Enterprise Server, which doesn't support issue artifacts. Callers run it before any request, so the user gets this reason instead of an API error. ghe.com hosts pass.
(host string)
| 220 | // artifacts. Callers run it before any request, so the user gets this reason |
| 221 | // instead of an API error. ghe.com hosts pass. |
| 222 | func CheckHost(host string) error { |
| 223 | if ghauth.IsEnterprise(host) { |
| 224 | return errors.New("issue artifacts are not supported on GitHub Enterprise Server") |
| 225 | } |
| 226 | return nil |
| 227 | } |
| 228 | |
| 229 | // CheckIssue refuses a pull request, since artifacts are only supported on |
| 230 | // issues. It makes one lookup, and callers run it before any artifact request. |
no outgoing calls