File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments