Add a script to auto-label issues

This commit is contained in:
Kamran Ahmed committed 2024-05-10 21:14:19 +01:00
1 parent fbecabf3fa
commit 7c68830b45
2 files changed
+12

No files matched your search

+1
View File
@@ -9,6 +9,7 @@
"build": "astro build",
"preview": "astro preview",
"format": "prettier --write .",
"gh-labels": "./scripts/create-roadmap-labels.sh",
"astro": "astro",
"deploy": "NODE_DEBUG=gh-pages gh-pages -d dist -t",
"upgrade": "ncu -u",
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# get all the folder names inside src/data/roadmaps
roadmap_ids=$(ls src/data/roadmaps)
# create a label for each roadmap name on github issues using gh cli
for roadmap_id in $roadmap_ids
do
random_color=$(openssl rand -hex 3)
gh label create "$roadmap_id" --color $random_color --description "Roadmap: $roadmap_id"
done