]> source.dussan.org Git - gitea.git/commit
Move all push update operations to a queue (#10133)
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 11 Sep 2020 14:14:48 +0000 (22:14 +0800)
committerGitHub <noreply@github.com>
Fri, 11 Sep 2020 14:14:48 +0000 (10:14 -0400)
commitdd1a651b5895cfdb8a141a56aa824ed4d082c41a
treec9d8f9adb0c0a9fb9af8623f1590275a395fa1c7
parent910947fbcd229abac9f507e266f94cb8864474cb
Move all push update operations to a queue (#10133)

* Fix test

* Add no queue for test only

* improve code

* Auto watch whatever branch operation

* Fix lint

* Rename noqueue to immediate

* Remove old PushUpdate function

* Fix tests

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
16 files changed:
integrations/mssql.ini.tmpl
integrations/mysql.ini.tmpl
integrations/mysql8.ini.tmpl
integrations/pgsql.ini.tmpl
integrations/sqlite.ini.tmpl
modules/repofiles/action.go
modules/repofiles/action_test.go
modules/repofiles/update.go
routers/api/v1/repo/branch.go
routers/init.go
routers/private/hook.go
routers/repo/branch.go
routers/repo/pull.go
services/repository/push.go [new file with mode: 0644]
services/repository/push_test.go [new file with mode: 0644]
services/repository/repository.go