- This post is based on Gogs 0.9.94.0829.
For every new repository, Gogs has one default predefined label template for you to quickly setup and use. The labels in default set is same as the default ones on GitHub.
However, we know you love customization, and just like the way that add your customized .gitignore, LICENSE and README, adding custom label templates is as easy as create a file like
My Labels, put it under
custom/conf/label directory and restart Gogs.
The format of label template file is very straightforward. This is how it looks like in default template file:
#ee0701 bug #cccccc duplicate #84b6eb enhancement #128a0c help wanted #e6e6e6 invalid #cc317c question #ffffff wontfix
Each label occupies a line and separate color and name with an empty space.
You will see a simple setup panel after you created a new repository, which you can select one of predefined label set:
Click on “Use this label set”, magic done!
Please leave comments if you have any questions or concerns about this post.