gitea/modules/templates
zeripath f82b1dd7c3
Prevent adding nil label to .AddedLabels or .RemovedLabels ()
* Prevent adding nil label to .AddedLabels or .RemovedLabels

There are possibly a few old databases out there with malmigrated data that can
cause panics with empty labels being migrated.

This PR adds a few tests to prevent nil labels being added.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add doctor command to remove the broken label comments

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
..
base.go Move macaron to chi ()
dynamic.go Move macaron to chi ()
helper.go Prevent adding nil label to .AddedLabels or .RemovedLabels ()
helper_test.go Use templates for issue e-mail subject and body ()
static.go Move macaron to chi ()
templates_bindata.go Rename scripts to build and add revive command as a new build tool command ()