Add new event commit status creation and webhook implementation (#27151)

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 #20749
This commit is contained in:
Lunny Xiao 2024-11-06 22:41:49 -08:00 committed by GitHub
parent 145e266987
commit 331e878e81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 90 additions and 22 deletions

View file

@ -32,6 +32,7 @@ const (
HookEventRelease HookEventType = "release"
HookEventPackage HookEventType = "package"
HookEventSchedule HookEventType = "schedule"
HookEventStatus HookEventType = "status"
)
// Event returns the HookEventType as an event string