mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Exclude Archived repos from Dashboard Milestones (#19882)
Milestones in archived repos should not be displayed on `/milestones`. Therefore we should exclude these repositories from milestones page. Fix #18257 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -618,7 +618,8 @@
 | 
			
		||||
  num_forks: 0
 | 
			
		||||
  num_issues: 1
 | 
			
		||||
  num_milestones: 1
 | 
			
		||||
  is_mirror: false
 | 
			
		||||
  is_mirror:
 | 
			
		||||
  is_archived: false
 | 
			
		||||
 | 
			
		||||
-
 | 
			
		||||
  id: 43
 | 
			
		||||
 
 | 
			
		||||
@@ -172,6 +172,7 @@ func Milestones(ctx *context.Context) {
 | 
			
		||||
		Private:       true,
 | 
			
		||||
		AllPublic:     false, // Include also all public repositories of users and public organisations
 | 
			
		||||
		AllLimited:    false, // Include also all public repositories of limited organisations
 | 
			
		||||
		Archived:      util.OptionalBoolFalse,
 | 
			
		||||
		HasMilestones: util.OptionalBoolTrue, // Just needs display repos has milestones
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user