Commit Graph

4 Commits (f1bea3c3b878fba066bd25383f690a31fa9e5489)

Author SHA1 Message Date
Lunny Xiao 331e878e81
Add new event commit status creation and webhook implementation ()
This PR introduces a new event which is similar as Github's. When a new
commit status submitted, the event will be trigged. That means, now we
can receive all feedback from CI/CD system in webhooks or other notify
systems.

ref:
https://docs.github.com/en/webhooks/webhook-events-and-payloads#status

Fix 
wxiaoguang 83f83019ef
Clean up log messages ()
`log.Xxx("%v")` is not ideal, this PR adds necessary context messages.
Remove some unnecessary logs.

Co-authored-by: Giteabot <teabot@gitea.io>
Nanguan Lin cda97a7253
Update status and code index after changing the default branch ()
Fix  
Add `ChangeDefaultBranch` to the `notifier` interface and implement it
in `indexerNotifier`. So when changing the default branch,
`indexerNotifier` sends a message to the `indexer queue` to update the
index.

---------

Co-authored-by: techknowlogick <matti@mdranta.net>
Lunny Xiao 540bf9fa6d
Move notification interface to services layer ()
Extract from