Just noticed the template name is unique.
So I tried to add the organization into the template name with this pattern:
ORG/template-name.yaml. Additionally I tried to add a gitea template variable string within drone template name.
Unfortunately this broke my sqlite … These templates can not be edited or remove with the drone ui + drone cli:
To explain the
templates hell here:
- There is a Gitea organization named
- I tried to add the organization name as prefix for a drone template as workaround for the unique names:
It seems like the problem here is the
/. It gets interpreted as part of the path for the API call. Maybe it’s worth adding a regex validation for the template name input field to avoid this?
Is it save to delete the template items with a sqlite command like
DELETE FROM templates WHERE id = 999?