1
0
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:
Kamran Ahmed
2024-05-10 21:11:40 +01:00
parent fbecabf3fa
commit 7c68830b45
2 changed files with 12 additions and 0 deletions

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",

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