Skip to content

Commit 8778699

Browse files
authored
🐛 Fix labeller
1 parent e82dcde commit 8778699

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/issue-validation.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
labels.splice(index, 1);
2727
}
2828
// Remove needs triage
29-
const index = labels.indexOf("needs triage");
30-
if (index > -1) {
31-
labels.splice(index, 1);
29+
const triageIndex = labels.indexOf("needs triage");
30+
if (triageIndex > -1) {
31+
labels.splice(triageIndex, 1);
3232
}
3333
}
3434
}
@@ -39,15 +39,15 @@ jobs:
3939
}
4040
if (labels.includes("incomplete")){
4141
// Remove incomplete label
42-
const index = labels.indexOf("incomplete");
43-
if (index > -1) {
44-
labels.splice(index, 1);
42+
const icIndex = labels.indexOf("incomplete");
43+
if (icIndex > -1) {
44+
labels.splice(icIndex, 1);
4545
}
4646
}
4747
// Remove needs triage
48-
const index = labels.indexOf("needs triage");
49-
if (index > -1) {
50-
labels.splice(index, 1);
48+
const triageIndex = labels.indexOf("needs triage");
49+
if (triageIndex > -1) {
50+
labels.splice(triageIndex, 1);
5151
}
5252
}
5353
if (labels.length === 0) {

0 commit comments

Comments
 (0)