feat: support --issue-label-exclusive
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				build / trigger-build-image (push) Successful in 12s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	build / trigger-build-image (push) Successful in 12s
				
			This commit is contained in:
		
							parent
							
								
									c3b053f0a5
								
							
						
					
					
						commit
						9e31fc71be
					
				|  | @ -307,6 +307,10 @@ def joj3_all_env( | |||
|         "#795548", | ||||
|         help="label color for the issue created by this command", | ||||
|     ), | ||||
|     issue_label_exclusive: bool = Option( | ||||
|         False, | ||||
|         help="label set as exclusive for the issue created by this command", | ||||
|     ), | ||||
|     end_time: Optional[datetime] = Option(None), | ||||
|     penalty_config: str = Option( | ||||
|         "", | ||||
|  | @ -360,6 +364,7 @@ def joj3_all_env( | |||
|             submitter_repo_name, | ||||
|             issue_label_name, | ||||
|             issue_label_color, | ||||
|             issue_label_exclusive, | ||||
|             penalty_factor, | ||||
|         ) | ||||
|         res["issue"] = issue_number | ||||
|  |  | |||
|  | @ -240,6 +240,7 @@ class Teapot: | |||
|         submitter_repo_name: str, | ||||
|         issue_label_name: str, | ||||
|         issue_label_color: str, | ||||
|         issue_label_exclusive: bool, | ||||
|         penalty_factor: float, | ||||
|     ) -> int: | ||||
|         title, comment = joj3.generate_title_and_comment( | ||||
|  | @ -280,7 +281,11 @@ class Teapot: | |||
|                 label = self.gitea.issue_api.issue_create_label( | ||||
|                     self.gitea.org_name, | ||||
|                     submitter_repo_name, | ||||
|                     body={"name": issue_label_name, "color": issue_label_color}, | ||||
|                     body={ | ||||
|                         "name": issue_label_name, | ||||
|                         "color": issue_label_color, | ||||
|                         "exclusive": issue_label_exclusive, | ||||
|                     }, | ||||
|                 ) | ||||
|                 label_id = label.id | ||||
|             joj3_issue = self.gitea.issue_api.issue_create_issue( | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user