* Add git hooks and webhooks to template options Signed-off-by: jolheiser <[email protected]> * Update models/repo.go Co-Authored-By: guillep2k <[email protected]> * Add tooltip if the user can't edit git hooks Signed-off-by: jolheiser <[email protected]> * Close repositories after copying git hooks Signed-off-by: jolheiser <[email protected]> * Wording Co-Authored-By: guillep2k <[email protected]> * Restructure for services Signed-off-by: jolheiser <[email protected]> * Return errors Signed-off-by: jolheiser <[email protected]> * Move GenerateRepository to using a DBContext Signed-off-by: jolheiser <[email protected]> * Wrap with models.WithTx Signed-off-by: jolheiser <[email protected]> * Remove debug print Signed-off-by: jolheiser <[email protected]> * Move if-error-delete-repo outside WithTx Signed-off-by: jolheiser <[email protected]> * Return nil if no repo generated Signed-off-by: jolheiser <[email protected]>