gitea/templates/repo
John Olheiser e84326aaec Add git hooks and webhooks to template repositories; move to services (#8926)
* Add git hooks and webhooks to template options

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Update models/repo.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>

* Add tooltip if the user can't edit git hooks

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Close repositories after copying git hooks

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Wording

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>

* Restructure for services

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Return errors

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Move GenerateRepository to using a DBContext

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Wrap with models.WithTx

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Remove debug print

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Move if-error-delete-repo outside WithTx

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Return nil if no repo generated

Signed-off-by: jolheiser <john.olheiser@gmail.com>
2019-11-24 12:57:52 -05:00
..
branch Button tooltip formatting under Branches (#9034) 2019-11-16 12:03:07 +00:00
diff Context menus for comments (#9043) 2019-11-19 20:33:42 +02:00
editor Allow committing / adding empty files using the web ui (#8420) (#8532) 2019-10-16 22:28:41 +03:00
issue Context menus for comments (#9043) 2019-11-19 20:33:42 +02:00
pulls Refuse merge until all required status checks success (#7481) 2019-09-18 08:39:45 +03:00
release Add extra user information when migrating release (#8331) 2019-10-05 14:09:27 +03:00
settings Show repository size in repo home page and settings (#8940) 2019-11-13 00:45:19 +00:00
wiki wiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241) 2019-11-17 14:42:44 -05:00
activity.tmpl Add additional periods to activity page (#8829) 2019-11-05 00:45:48 -05:00
blame.tmpl keep blame view buttons sequence consistent with normal view when view a file (#8007) 2019-08-27 22:23:18 -04:00
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 2018-03-19 22:29:16 +08:00
commit_page.tmpl Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
commits_list.tmpl Fix: remove duplicated signed commit icons (#8820) 2019-11-04 18:20:12 +08:00
commits_table.tmpl Unifies commit list in repository commit table and wiki revision page (#7907) 2019-11-01 22:02:41 +00:00
commits.tmpl Responsive view (#2750) 2017-12-30 18:47:52 -06:00
create.tmpl Add git hooks and webhooks to template repositories; move to services (#8926) 2019-11-24 12:57:52 -05:00
empty.tmpl Feature: Archive repos (#5009) 2019-01-23 13:58:38 -05:00
forks.tmpl #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
graph.tmpl Add pagination to commit graph page (#8360) 2019-10-14 22:38:35 +01:00
header.tmpl Template Repositories (#8768) 2019-11-11 23:15:29 +08:00
home.tmpl Template Repositories (#8768) 2019-11-11 23:15:29 +08:00
migrate.tmpl Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 2019-05-07 09:12:51 +08:00
migrating.tmpl [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
search.tmpl Don't warn users about *every* dirty form (#3707) 2018-03-23 22:10:42 +08:00
sub_menu.tmpl Show repository size in repo home page and settings (#8940) 2019-11-13 00:45:19 +00:00
user_cards.tmpl Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00
view_file.tmpl Respect LFS File Lock on UI (#8719) 2019-10-29 23:32:21 +02:00
view_list.tmpl Project files table style update (#8757) 2019-11-02 00:26:21 +00:00
watchers.tmpl #1692 APIs: Users Followers 2015-12-21 04:24:11 -08:00