mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +00:00 
			
		
		
		
	[CI] Keep original labels when PR has too many lines (#9745)
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/auto-label-pr.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/auto-label-pr.yml
									
									
									
									
										vendored
									
									
								
							| @@ -414,7 +414,14 @@ jobs: | ||||
|             if ((tooManyLabels || tooManyChanges) && !allowedTooBig) { | ||||
|               const originalLength = finalLabels.length; | ||||
|               console.log(`PR is too big - Labels: ${originalLength}, Changes: ${totalChanges}`); | ||||
|               finalLabels = ['too-big']; | ||||
|  | ||||
|               // If too big due to line changes only, keep original labels and add too-big | ||||
|               // If too big due to too many labels, replace with just too-big | ||||
|               if (tooManyChanges && !tooManyLabels) { | ||||
|                 finalLabels.push('too-big'); | ||||
|               } else { | ||||
|                 finalLabels = ['too-big']; | ||||
|               } | ||||
|  | ||||
|               // Create appropriate review message | ||||
|               let reviewBody; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user