mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Add the ability to use multiple labels as filters(#5786)
This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							6a949af8ca
						
					
				
				
					commit
					075649572d
				
			| @@ -193,11 +193,19 @@ func TestIssues(t *testing.T) { | ||||
| 		}, | ||||
| 		{ | ||||
| 			IssuesOptions{ | ||||
| 				Labels:   "1,2", | ||||
| 				LabelIDs: []int64{1}, | ||||
| 				Page:     1, | ||||
| 				PageSize: 4, | ||||
| 			}, | ||||
| 			[]int64{5, 2, 1}, | ||||
| 			[]int64{2, 1}, | ||||
| 		}, | ||||
| 		{ | ||||
| 			IssuesOptions{ | ||||
| 				LabelIDs: []int64{1, 2}, | ||||
| 				Page:     1, | ||||
| 				PageSize: 4, | ||||
| 			}, | ||||
| 			[]int64{}, // issues with **both** label 1 and 2, none of these issues matches, TODO: add more tests | ||||
| 		}, | ||||
| 	} { | ||||
| 		issues, err := Issues(&test.Opts) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user