checkRepositoryHasIssues checks if a repository has issues enabled (with caching)
(repo string, verbose bool)
| 294 | |
| 295 | // checkRepositoryHasIssues checks if a repository has issues enabled (with caching) |
| 296 | func checkRepositoryHasIssues(repo string, verbose bool) (bool, error) { |
| 297 | features, err := getRepositoryFeatures(repo, verbose) |
| 298 | if err != nil { |
| 299 | return false, err |
| 300 | } |
| 301 | return features.HasIssues, nil |
| 302 | } |
| 303 | |
| 304 | // checkRepositoryHasIssuesUncached checks if a repository has issues enabled (no caching) |
| 305 | func checkRepositoryHasIssuesUncached(repo string) (bool, error) { |