this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

CLI: Add recreate command

futurGH 39db9cad 29794f54

+22 -1
+3 -1
README.md
··· 17 17 Commands: 18 18 setup - Initialize an account as a labeler. 19 19 clear - Restore a labeler account to normal. 20 + recreate - Recreate the labeler declaration (recommended if labels are not showing up). 20 21 label add - Add new label declarations to a labeler account. 21 22 label delete - Remove label declarations from a labeler account. 23 + label edit - Bulk edit label definitions. 22 24 ``` 23 25 24 26 For a full guide to setting up a labeler, see [Getting Started](https://skyware.js.org/guides/labeler/introduction/getting-started). ··· 45 47 console.log(`Labeler server listening on ${address}`); 46 48 } 47 49 }); 48 - ``` 50 + ```
+19
src/bin.ts
··· 94 94 console.error("Error setting up labeler:", error); 95 95 } 96 96 } 97 + } else if (command === "recreate") { 98 + const credentials = await promptCredentials(); 99 + 100 + const definitions = await getLabelerLabelDefinitions(credentials); 101 + if (!definitions) { 102 + console.log("No label definitions found."); 103 + process.exit(0); 104 + } 105 + 106 + try { 107 + await deleteLabelerDeclaration(credentials); 108 + await declareLabeler(credentials, definitions); 109 + console.log("Labeler declaration recreated."); 110 + } catch (error) { 111 + console.error("Error recreating labeler declaration:", error); 112 + } 97 113 } else if ( 98 114 command === "label" 99 115 && (subcommand === "add" || subcommand === "delete" || subcommand === "edit") ··· 180 196 console.log("Commands:"); 181 197 console.log(" setup - Initialize an account as a labeler."); 182 198 console.log(" clear - Restore a labeler account to normal."); 199 + console.log( 200 + " recreate - Recreate the labeler declaration (recommended if labels are not showing up).", 201 + ); 183 202 console.log(" label add - Add new label declarations to a labeler account."); 184 203 console.log(" label delete - Remove label declarations from a labeler account."); 185 204 console.log(" label edit - Bulk edit label definitions.");