Add gitlab system hook parsing

If you use gitlab system hooks you can now send push/tag_push/merge_request events
This commit is contained in:
Martin Treml
2018-12-20 17:09:12 +01:00
parent 80aa7fa2fe
commit 1b9fe11c1f
3 changed files with 113 additions and 17 deletions
+5
View File
@@ -148,6 +148,11 @@ type BuildEventPayload struct {
Repository Repository `json:"repository"`
}
// SystemHookPayload contains the ObjectKind to match with real hook events
type SystemHookPayload struct {
ObjectKind string `json:"object_kind"`
}
// Issue contains all of the GitLab issue information
type Issue struct {
ID int64 `json:"id"`