mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-07-31 22:40:19 +02:00
Add a script to auto-label issues
This commit is contained in:
@@ -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
scripts/create-roadmap-labels.sh
Executable file
11
scripts/create-roadmap-labels.sh
Executable 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
|
Reference in New Issue
Block a user