gitea/modules
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
..
auth Add git hooks and webhooks to template repositories; move to services (#8926) 2019-11-24 12:57:52 -05:00
avatar
base
cache
charset
context Fix nil context user (#9099) 2019-11-20 19:44:35 +00:00
convert Team permission to create repository in organization (#8312) 2019-11-20 19:27:49 +08:00
cron
generate
git Move mirror sync actions to notification (#9022) 2019-11-24 00:16:59 -05:00
gitgraph Move git graph from models to modules/graph (#9027) 2019-11-16 08:47:57 +08:00
graceful Graceful: Allow graceful restart for unix sockets (#9113) 2019-11-24 03:11:24 +01:00
highlight
httplib
indexer Add Graceful shutdown for Windows and hooks for shutdown of goroutines (#8964) 2019-11-21 13:32:02 -05:00
lfs
log
markup Fix team links in HTML rendering (#9127) 2019-11-24 11:34:44 -05:00
metrics
migrations Add retry for migration http/https requests (#9019) 2019-11-16 16:30:06 +08:00
notification Move mirror sync actions to notification (#9022) 2019-11-24 00:16:59 -05:00
options
password Add password requirement info on error (#9074) 2019-11-19 22:44:58 +00:00
pprof
private
process
public
recaptcha fixed reCAPTCHA URL (#9083) 2019-11-22 08:03:45 +00:00
references Close/reopen issues by keywords in titles and comments (#8866) 2019-11-18 15:13:07 +02:00
repofiles Expand/Collapse Files and Blob Excerpt while Reviewing/Comparing code (#8924) 2019-11-15 10:52:59 +08:00
search
secret
session
setting Add USE_SERVICE_WORKER setting (#9110) 2019-11-21 15:06:23 -05:00
ssh Add Graceful shutdown for Windows and hooks for shutdown of goroutines (#8964) 2019-11-21 13:32:02 -05:00
structs Team permission to create repository in organization (#8312) 2019-11-20 19:27:49 +08:00
sync
task
templates Add USE_SERVICE_WORKER setting (#9110) 2019-11-21 15:06:23 -05:00
test
timeutil
upload
user
util
validation
webhook