Unverified Commit 51f0768a authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Merge pull request #683 from nhywieza/fix-pushevent

Add user_username field for push-evennt
parents 66786127 26b7e557
...@@ -28,17 +28,18 @@ import ( ...@@ -28,17 +28,18 @@ import (
// GitLab API docs: // GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#push-events // https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#push-events
type PushEvent struct { type PushEvent struct {
ObjectKind string `json:"object_kind"` ObjectKind string `json:"object_kind"`
Before string `json:"before"` Before string `json:"before"`
After string `json:"after"` After string `json:"after"`
Ref string `json:"ref"` Ref string `json:"ref"`
CheckoutSHA string `json:"checkout_sha"` CheckoutSHA string `json:"checkout_sha"`
UserID int `json:"user_id"` UserID int `json:"user_id"`
UserName string `json:"user_name"` UserName string `json:"user_name"`
UserEmail string `json:"user_email"` UserEmail string `json:"user_email"`
UserAvatar string `json:"user_avatar"` UserUsername string `json:"user_username"`
ProjectID int `json:"project_id"` UserAvatar string `json:"user_avatar"`
Project struct { ProjectID int `json:"project_id"`
Project struct {
Name string `json:"name"` Name string `json:"name"`
Description string `json:"description"` Description string `json:"description"`
AvatarURL string `json:"avatar_url"` AvatarURL string `json:"avatar_url"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment