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
b0143419
Commit
b0143419
authored
Nov 17, 2017
by
Luke Kysow
Committed by
Sander van Harmelen
Nov 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct struct for MergeCommentEvent.MergeRequest (#245)
parent
76bc1725
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
1 deletion
+52
-1
events.go
events.go
+52
-1
No files found.
events.go
View file @
b0143419
...
@@ -230,7 +230,58 @@ type MergeCommentEvent struct {
...
@@ -230,7 +230,58 @@ type MergeCommentEvent struct {
StDiff
*
Diff
`json:"st_diff"`
StDiff
*
Diff
`json:"st_diff"`
URL
string
`json:"url"`
URL
string
`json:"url"`
}
`json:"object_attributes"`
}
`json:"object_attributes"`
MergeRequest
*
MergeRequest
`json:"merge_request"`
MergeRequest
struct
{
ID
int
`json:"id"`
TargetBranch
string
`json:"target_branch"`
SourceBranch
string
`json:"source_branch"`
SourceProjectID
int
`json:"source_project_id"`
AuthorID
int
`json:"author_id"`
AssigneeID
int
`json:"assignee_id"`
Title
string
`json:"title"`
CreatedAt
string
`json:"created_at"`
// Should be *time.Time (see Gitlab issue #21468)
UpdatedAt
string
`json:"updated_at"`
// Should be *time.Time (see Gitlab issue #21468)
StCommits
[]
*
Commit
`json:"st_commits"`
StDiffs
[]
*
Diff
`json:"st_diffs"`
MilestoneID
int
`json:"milestone_id"`
State
string
`json:"state"`
MergeStatus
string
`json:"merge_status"`
TargetProjectID
int
`json:"target_project_id"`
Iid
int
`json:"iid"`
Description
string
`json:"description"`
Position
int
`json:"position"`
LockedAt
string
`json:"locked_at"`
UpdatedByID
int
`json:"updated_by_id"`
MergeError
string
`json:"merge_error"`
MergeParams
struct
{
ForceRemoveSourceBranch
string
`json:"force_remove_source_branch"`
}
`json:"merge_params"`
MergeWhenBuildSucceeds
bool
`json:"merge_when_build_succeeds"`
MergeUserID
int
`json:"merge_user_id"`
MergeCommitSha
string
`json:"merge_commit_sha"`
DeletedAt
string
`json:"deleted_at"`
ApprovalsBeforeMerge
string
`json:"approvals_before_merge"`
RebaseCommitSha
string
`json:"rebase_commit_sha"`
InProgressMergeCommitSha
string
`json:"in_progress_merge_commit_sha"`
LockVersion
int
`json:"lock_version"`
TimeEstimate
int
`json:"time_estimate"`
Source
*
Repository
`json:"source"`
Target
*
Repository
`json:"target"`
LastCommit
struct
{
ID
string
`json:"id"`
Message
string
`json:"message"`
Timestamp
*
time
.
Time
`json:"timestamp"`
URL
string
`json:"url"`
Author
*
Author
`json:"author"`
}
`json:"last_commit"`
WorkInProgress
bool
`json:"work_in_progress"`
URL
string
`json:"url"`
Action
string
`json:"action"`
Assignee
struct
{
Name
string
`json:"name"`
Username
string
`json:"username"`
AvatarURL
string
`json:"avatar_url"`
}
`json:"assignee"`
}
`json:"merge_request"`
}
}
// IssueCommentEvent represents a comment on an issue event.
// IssueCommentEvent represents a comment on an issue event.
...
...
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