mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Add units concept for modulable functions of a repository (#742)
* Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
This commit is contained in:
@@ -236,7 +236,7 @@ func Issues(ctx *context.Context) {
|
||||
for _, repo := range repos {
|
||||
if (isPullList && repo.NumPulls == 0) ||
|
||||
(!isPullList &&
|
||||
(!repo.EnableIssues || repo.EnableExternalTracker || repo.NumIssues == 0)) {
|
||||
(!repo.EnableUnit(models.UnitTypeIssues) || repo.NumIssues == 0)) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user