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
581aea42
Commit
581aea42
authored
Dec 12, 2016
by
Sander van Harmelen
Committed by
GitHub
Dec 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix event structs (#109)
parent
6177e9a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
120 additions
and
11 deletions
+120
-11
events.go
events.go
+120
-11
No files found.
events.go
View file @
581aea42
...
@@ -68,7 +68,22 @@ type TagEvent struct {
...
@@ -68,7 +68,22 @@ type TagEvent struct {
UserName
string
`json:"user_name"`
UserName
string
`json:"user_name"`
UserAvatar
string
`json:"user_avatar"`
UserAvatar
string
`json:"user_avatar"`
ProjectID
int
`json:"project_id"`
ProjectID
int
`json:"project_id"`
Project
*
Project
`json:"project"`
Project
struct
{
Name
string
`json:"name"`
Description
string
`json:"description"`
AvatarURL
string
`json:"avatar_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitHTTPURL
string
`json:"git_http_url"`
Namespace
string
`json:"namespace"`
PathWithNamespace
string
`json:"path_with_namespace"`
DefaultBranch
string
`json:"default_branch"`
Homepage
string
`json:"homepage"`
URL
string
`json:"url"`
SSHURL
string
`json:"ssh_url"`
HTTPURL
string
`json:"http_url"`
WebURL
string
`json:"web_url"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
}
`json:"project"`
Repository
*
Repository
`json:"repository"`
Repository
*
Repository
`json:"repository"`
Commits
[]
*
Commit
`json:"commits"`
Commits
[]
*
Commit
`json:"commits"`
TotalCommitsCount
int
`json:"total_commits_count"`
TotalCommitsCount
int
`json:"total_commits_count"`
...
@@ -81,7 +96,22 @@ type TagEvent struct {
...
@@ -81,7 +96,22 @@ type TagEvent struct {
type
IssueEvent
struct
{
type
IssueEvent
struct
{
ObjectKind
string
`json:"object_kind"`
ObjectKind
string
`json:"object_kind"`
User
*
User
`json:"user"`
User
*
User
`json:"user"`
Project
*
Project
`json:"project"`
Project
struct
{
Name
string
`json:"name"`
Description
string
`json:"description"`
AvatarURL
string
`json:"avatar_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitHTTPURL
string
`json:"git_http_url"`
Namespace
string
`json:"namespace"`
PathWithNamespace
string
`json:"path_with_namespace"`
DefaultBranch
string
`json:"default_branch"`
Homepage
string
`json:"homepage"`
URL
string
`json:"url"`
SSHURL
string
`json:"ssh_url"`
HTTPURL
string
`json:"http_url"`
WebURL
string
`json:"web_url"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
}
`json:"project"`
Repository
*
Repository
`json:"repository"`
Repository
*
Repository
`json:"repository"`
ObjectAttributes
struct
{
ObjectAttributes
struct
{
ID
int
`json:"id"`
ID
int
`json:"id"`
...
@@ -115,7 +145,22 @@ type CommitCommentEvent struct {
...
@@ -115,7 +145,22 @@ type CommitCommentEvent struct {
ObjectKind
string
`json:"object_kind"`
ObjectKind
string
`json:"object_kind"`
User
*
User
`json:"user"`
User
*
User
`json:"user"`
ProjectID
int
`json:"project_id"`
ProjectID
int
`json:"project_id"`
Project
*
Project
`json:"project"`
Project
struct
{
Name
string
`json:"name"`
Description
string
`json:"description"`
AvatarURL
string
`json:"avatar_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitHTTPURL
string
`json:"git_http_url"`
Namespace
string
`json:"namespace"`
PathWithNamespace
string
`json:"path_with_namespace"`
DefaultBranch
string
`json:"default_branch"`
Homepage
string
`json:"homepage"`
URL
string
`json:"url"`
SSHURL
string
`json:"ssh_url"`
HTTPURL
string
`json:"http_url"`
WebURL
string
`json:"web_url"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
}
`json:"project"`
Repository
*
Repository
`json:"repository"`
Repository
*
Repository
`json:"repository"`
ObjectAttributes
struct
{
ObjectAttributes
struct
{
ID
int
`json:"id"`
ID
int
`json:"id"`
...
@@ -152,7 +197,22 @@ type MergeCommentEvent struct {
...
@@ -152,7 +197,22 @@ type MergeCommentEvent struct {
ObjectKind
string
`json:"object_kind"`
ObjectKind
string
`json:"object_kind"`
User
*
User
`json:"user"`
User
*
User
`json:"user"`
ProjectID
int
`json:"project_id"`
ProjectID
int
`json:"project_id"`
Project
*
Project
`json:"project"`
Project
struct
{
Name
string
`json:"name"`
Description
string
`json:"description"`
AvatarURL
string
`json:"avatar_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitHTTPURL
string
`json:"git_http_url"`
Namespace
string
`json:"namespace"`
PathWithNamespace
string
`json:"path_with_namespace"`
DefaultBranch
string
`json:"default_branch"`
Homepage
string
`json:"homepage"`
URL
string
`json:"url"`
SSHURL
string
`json:"ssh_url"`
HTTPURL
string
`json:"http_url"`
WebURL
string
`json:"web_url"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
}
`json:"project"`
Repository
*
Repository
`json:"repository"`
Repository
*
Repository
`json:"repository"`
ObjectAttributes
struct
{
ObjectAttributes
struct
{
ID
int
`json:"id"`
ID
int
`json:"id"`
...
@@ -181,7 +241,22 @@ type IssueCommentEvent struct {
...
@@ -181,7 +241,22 @@ type IssueCommentEvent struct {
ObjectKind
string
`json:"object_kind"`
ObjectKind
string
`json:"object_kind"`
User
*
User
`json:"user"`
User
*
User
`json:"user"`
ProjectID
int
`json:"project_id"`
ProjectID
int
`json:"project_id"`
Project
*
Project
`json:"project"`
Project
struct
{
Name
string
`json:"name"`
Description
string
`json:"description"`
AvatarURL
string
`json:"avatar_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitHTTPURL
string
`json:"git_http_url"`
Namespace
string
`json:"namespace"`
PathWithNamespace
string
`json:"path_with_namespace"`
DefaultBranch
string
`json:"default_branch"`
Homepage
string
`json:"homepage"`
URL
string
`json:"url"`
SSHURL
string
`json:"ssh_url"`
HTTPURL
string
`json:"http_url"`
WebURL
string
`json:"web_url"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
}
`json:"project"`
Repository
*
Repository
`json:"repository"`
Repository
*
Repository
`json:"repository"`
ObjectAttributes
struct
{
ObjectAttributes
struct
{
ID
int
`json:"id"`
ID
int
`json:"id"`
...
@@ -210,7 +285,22 @@ type SnippetCommentEvent struct {
...
@@ -210,7 +285,22 @@ type SnippetCommentEvent struct {
ObjectKind
string
`json:"object_kind"`
ObjectKind
string
`json:"object_kind"`
User
*
User
`json:"user"`
User
*
User
`json:"user"`
ProjectID
int
`json:"project_id"`
ProjectID
int
`json:"project_id"`
Project
*
Project
`json:"project"`
Project
struct
{
Name
string
`json:"name"`
Description
string
`json:"description"`
AvatarURL
string
`json:"avatar_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitHTTPURL
string
`json:"git_http_url"`
Namespace
string
`json:"namespace"`
PathWithNamespace
string
`json:"path_with_namespace"`
DefaultBranch
string
`json:"default_branch"`
Homepage
string
`json:"homepage"`
URL
string
`json:"url"`
SSHURL
string
`json:"ssh_url"`
HTTPURL
string
`json:"http_url"`
WebURL
string
`json:"web_url"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
}
`json:"project"`
Repository
*
Repository
`json:"repository"`
Repository
*
Repository
`json:"repository"`
ObjectAttributes
struct
{
ObjectAttributes
struct
{
ID
int
`json:"id"`
ID
int
`json:"id"`
...
@@ -241,18 +331,18 @@ type MergeEvent struct {
...
@@ -241,18 +331,18 @@ type MergeEvent struct {
Project
struct
{
Project
struct
{
Name
string
`json:"name"`
Name
string
`json:"name"`
Description
string
`json:"description"`
Description
string
`json:"description"`
WebURL
string
`json:"web_url"`
AvatarURL
string
`json:"avatar_url"`
AvatarURL
string
`json:"avatar_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitHTTPURL
string
`json:"git_http_url"`
GitHTTPURL
string
`json:"git_http_url"`
Namespace
string
`json:"namespace"`
Namespace
string
`json:"namespace"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
PathWithNamespace
string
`json:"path_with_namespace"`
PathWithNamespace
string
`json:"path_with_namespace"`
DefaultBranch
string
`json:"default_branch"`
DefaultBranch
string
`json:"default_branch"`
Homepage
string
`json:"homepage"`
Homepage
string
`json:"homepage"`
URL
string
`json:"url"`
URL
string
`json:"url"`
SSHURL
string
`json:"ssh_url"`
SSHURL
string
`json:"ssh_url"`
HTTPURL
string
`json:"http_url"`
HTTPURL
string
`json:"http_url"`
WebURL
string
`json:"web_url"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
}
`json:"project"`
}
`json:"project"`
ObjectAttributes
struct
{
ObjectAttributes
struct
{
ID
int
`json:"id"`
ID
int
`json:"id"`
...
@@ -321,7 +411,22 @@ type MergeEvent struct {
...
@@ -321,7 +411,22 @@ type MergeEvent struct {
type
WikiPageEvent
struct
{
type
WikiPageEvent
struct
{
ObjectKind
string
`json:"object_kind"`
ObjectKind
string
`json:"object_kind"`
User
*
User
`json:"user"`
User
*
User
`json:"user"`
Project
*
Project
`json:"project"`
Project
struct
{
Name
string
`json:"name"`
Description
string
`json:"description"`
AvatarURL
string
`json:"avatar_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitHTTPURL
string
`json:"git_http_url"`
Namespace
string
`json:"namespace"`
PathWithNamespace
string
`json:"path_with_namespace"`
DefaultBranch
string
`json:"default_branch"`
Homepage
string
`json:"homepage"`
URL
string
`json:"url"`
SSHURL
string
`json:"ssh_url"`
HTTPURL
string
`json:"http_url"`
WebURL
string
`json:"web_url"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
}
`json:"project"`
Wiki
struct
{
Wiki
struct
{
WebURL
string
`json:"web_url"`
WebURL
string
`json:"web_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitSSHURL
string
`json:"git_ssh_url"`
...
@@ -366,14 +471,18 @@ type PipelineEvent struct {
...
@@ -366,14 +471,18 @@ type PipelineEvent struct {
Project
struct
{
Project
struct
{
Name
string
`json:"name"`
Name
string
`json:"name"`
Description
string
`json:"description"`
Description
string
`json:"description"`
WebURL
string
`json:"web_url"`
AvatarURL
string
`json:"avatar_url"`
AvatarURL
string
`json:"avatar_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitSSHURL
string
`json:"git_ssh_url"`
GitHTTPURL
string
`json:"git_http_url"`
GitHTTPURL
string
`json:"git_http_url"`
Namespace
string
`json:"namespace"`
Namespace
string
`json:"namespace"`
VisibilityLevel
int
`json:"visibility_level"`
PathWithNamespace
string
`json:"path_with_namespace"`
PathWithNamespace
string
`json:"path_with_namespace"`
DefaultBranch
string
`json:"default_branch"`
DefaultBranch
string
`json:"default_branch"`
Homepage
string
`json:"homepage"`
URL
string
`json:"url"`
SSHURL
string
`json:"ssh_url"`
HTTPURL
string
`json:"http_url"`
WebURL
string
`json:"web_url"`
VisibilityLevel
VisibilityLevelValue
`json:"visibility_level"`
}
`json:"project"`
}
`json:"project"`
Commit
struct
{
Commit
struct
{
ID
string
`json:"id"`
ID
string
`json:"id"`
...
...
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