mirror of
https://github.com/esphome/esphome.git
synced 2025-07-28 14:16:40 +00:00
[CI] Keep original labels when PR has too many lines (#9745)
This commit is contained in:
parent
bb9011d65d
commit
06bd1472de
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user