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
26b7e557
Commit
26b7e557
authored
Sep 22, 2019
by
yanweizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix push-event user_username
Change-Id: I34020a681d72be9e4a5543503ca86bd6962f1933
parent
66786127
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 @
26b7e557
...
...
@@ -28,17 +28,18 @@ import (
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#push-events
type
PushEvent
struct
{
ObjectKind
string
`json:"object_kind"`
Before
string
`json:"before"`
After
string
`json:"after"`
Ref
string
`json:"ref"`
CheckoutSHA
string
`json:"checkout_sha"`
UserID
int
`json:"user_id"`
UserName
string
`json:"user_name"`
UserEmail
string
`json:"user_email"`
UserAvatar
string
`json:"user_avatar"`
ProjectID
int
`json:"project_id"`
Project
struct
{
ObjectKind
string
`json:"object_kind"`
Before
string
`json:"before"`
After
string
`json:"after"`
Ref
string
`json:"ref"`
CheckoutSHA
string
`json:"checkout_sha"`
UserID
int
`json:"user_id"`
UserName
string
`json:"user_name"`
UserEmail
string
`json:"user_email"`
UserUsername
string
`json:"user_username"`
UserAvatar
string
`json:"user_avatar"`
ProjectID
int
`json:"project_id"`
Project
struct
{
Name
string
`json:"name"`
Description
string
`json:"description"`
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