mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Ignore repository with issue disabled or use external tracker in dashboard issues
This commit is contained in:
		
							
								
								
									
										13
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Makefile
									
									
									
									
									
								
							@@ -16,18 +16,19 @@ NOW = $(shell date -u '+%Y%m%d%I%M%S')
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.IGNORE: public/css/gogs.css
 | 
					.IGNORE: public/css/gogs.css
 | 
				
			||||||
 | 
					
 | 
				
			||||||
build: $(GENERATED)
 | 
					# FIXME: find a way to ignore /vendor/ and /data/ directories.
 | 
				
			||||||
	go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
 | 
					 | 
				
			||||||
	cp '$(GOPATH)/bin/gogs' .
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
govet:
 | 
					govet:
 | 
				
			||||||
	go tool vet -composites=false -methods=false -structtags=false .
 | 
						go tool vet -composites=false -methods=false -structtags=false .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
build-dev: $(GENERATED) govet
 | 
					build: $(GENERATED) govet
 | 
				
			||||||
 | 
						go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
 | 
				
			||||||
 | 
						cp '$(GOPATH)/bin/gogs' .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					build-dev: $(GENERATED) 
 | 
				
			||||||
	go install $(BUILD_FLAGS) -tags '$(TAGS)'
 | 
						go install $(BUILD_FLAGS) -tags '$(TAGS)'
 | 
				
			||||||
	cp '$(GOPATH)/bin/gogs' .
 | 
						cp '$(GOPATH)/bin/gogs' .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
build-dev-race: $(GENERATED) govet
 | 
					build-dev-race: $(GENERATED)
 | 
				
			||||||
	go install $(BUILD_FLAGS) -race -tags '$(TAGS)'
 | 
						go install $(BUILD_FLAGS) -race -tags '$(TAGS)'
 | 
				
			||||||
	cp '$(GOPATH)/bin/gogs' .
 | 
						cp '$(GOPATH)/bin/gogs' .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,7 @@ Gogs - Go Git Service [
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
##### Current tip version: 0.9.62 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
 | 
					##### Current tip version: 0.9.63 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| Web | UI  | Preview  |
 | 
					| Web | UI  | Preview  |
 | 
				
			||||||
|:-------------:|:-------:|:-------:|
 | 
					|:-------------:|:-------:|:-------:|
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							@@ -17,7 +17,7 @@ import (
 | 
				
			|||||||
	"github.com/gogits/gogs/modules/setting"
 | 
						"github.com/gogits/gogs/modules/setting"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const APP_VER = "0.9.62.0805"
 | 
					const APP_VER = "0.9.63.0805"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	runtime.GOMAXPROCS(runtime.NumCPU())
 | 
						runtime.GOMAXPROCS(runtime.NumCPU())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -220,7 +220,8 @@ func Issues(ctx *context.Context) {
 | 
				
			|||||||
	showRepos := make([]*models.Repository, 0, len(repos))
 | 
						showRepos := make([]*models.Repository, 0, len(repos))
 | 
				
			||||||
	for _, repo := range repos {
 | 
						for _, repo := range repos {
 | 
				
			||||||
		if (isPullList && repo.NumPulls == 0) ||
 | 
							if (isPullList && repo.NumPulls == 0) ||
 | 
				
			||||||
			(!isPullList && repo.NumIssues == 0) {
 | 
								(!isPullList &&
 | 
				
			||||||
 | 
									(!repo.EnableIssues || repo.EnableExternalTracker || repo.NumIssues == 0)) {
 | 
				
			||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
0.9.62.0805
 | 
					0.9.63.0805
 | 
				
			||||||
		Reference in New Issue
	
	Block a user