Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
51f0768a
Unverified
Commit
51f0768a
authored
Sep 22, 2019
by
Sander van Harmelen
Committed by
GitHub
Sep 22, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #683 from nhywieza/fix-pushevent
Add user_username field for push-evennt
parents
66786127
26b7e557
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
event_types.go
event_types.go
+12
-11
No files found.
event_types.go
View file @
51f0768a
...
@@ -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"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment