Skip to content

Commit 021dc13

Browse files
authored
ci(workflow): update labels-clean
1 parent 26da462 commit 021dc13

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/labels-clean.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ jobs:
202202
const response = await github.rest.issues.listLabelsForRepo({
203203
owner: targetOwner,
204204
repo: targetRepo,
205+
per_page: 100
205206
});
206207
console.log("Labels fetched: ", response.data);
207208
@@ -210,12 +211,6 @@ jobs:
210211
console.log("No labels found in the source repository.");
211212
}
212213
213-
// Fetch all labels from the target repository and delete them
214-
const existingLabels = await github.rest.issues.listLabelsForRepo({
215-
owner: targetOwner,
216-
repo: targetRepo,
217-
});
218-
219214
// const labels = JSON.parse( process.env.LABELS_JSON );
220215
let result = Object.keys(labels).length;
221216
for ( const label of labels )
@@ -235,7 +230,7 @@ jobs:
235230
}
236231
}
237232
238-
console.log("[Success]: Added " + result + " labels to repo");
233+
console.log("[Success]: Added " + result + " Removed to repo");
239234
240235
return result
241236

0 commit comments

Comments
 (0)