Creating Github Issue Labels
If you use GitHub Issues for tracking work and bugs, then you probably also use labels for categorizing or highlighting those issues. You might also use labels for applying some sort of workflow, such as highlighting which issues are ready to be worked on, in progress, or blocked.
I have a set of labels that I tend to use in all of my GitHub projects. Creating them by hand is a pain. So, to fix this, I’ve written a python script that does this for me…
The definition of what labels I want, and which colour to use for them, is described a
definitions.json file. For example, here are the definitions I generally use…
The script then does all the hard work for me.
It’s a pretty dumb script at present, taking no account of labels that already exist - it’ll fail to create the label if it already exists, and goes on to the next one. It will also leave any other labels alone. I may get around to changing some of these things…but don’t hold your breath.
If you see a problem with the script, or have any suggestions for how it could be improved, then add something to the issues on GitHub.com.