1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-16 22:23:59 +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

@@ -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