Ignore repository with issue disabled or use external tracker in dashboard issues

This commit is contained in:
Unknwon 2016-08-05 12:46:26 -07:00
parent 50422f1fc2
commit cf6d321991
5 changed files with 12 additions and 10 deletions

View file

@ -220,7 +220,8 @@ func Issues(ctx *context.Context) {
showRepos := make([]*models.Repository, 0, len(repos))
for _, repo := range repos {
if (isPullList && repo.NumPulls == 0) ||
(!isPullList && repo.NumIssues == 0) {
(!isPullList &&
(!repo.EnableIssues || repo.EnableExternalTracker || repo.NumIssues == 0)) {
continue
}