Commit Graph

8 Commits (6fbfffeeb8fa23327660e8f8e168644bc93bf42b)

Author SHA1 Message Date
Lunny Xiao dad67cae54
Refactor pull request review ()
* refactor submit review

* remove unnecessary code

* remove unused comment

* fix lint

* remove duplicated actions

* remove duplicated actions

* fix typo

* fix comment content
guillep2k 8282f26250 Don't send notification on pending reviews ()
Lunny Xiao aaeef295bb
Move pull webhook to notification ()
* Move pull webhook to notification

* fix fmt
Lunny Xiao f518fe6662
Rename HookQueue to hookQueue ()
* Rename HookQueue to hookQueue

* fix lint
Lunny Xiao 0e7f7df3cf Move webhook to a standalone package under modules ()
* Move webhook to a standalone package under modules

* fix test

* fix comments
John Olheiser 0a004a69cd Improve webhooks ()
* Improve webhooks

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

* Update MSTeams and ReviewPayload comment

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

* Add repo.FullName to comments

Signed-off-by: jolheiser <john.olheiser@gmail.com>
John Olheiser 7c4c01c0fd Fix review webhooks ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Lunny Xiao eb11ca6847
Extract actions on new pull request from models to pulls service and move code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull ()
* extract actions on new pull request from models to pulls service

* improve code

* move code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull

* fix fmt

* Rename pulls.go to pull.go