* Fix tests code to prevent some runtime errors * Reduce nesting
* Replace Gogs by Gitea * Fix missing changes * Create Gitea webhook and put Gogs webhook apart.