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
2df15271
Commit
2df15271
authored
Jul 22, 2016
by
Sander van Harmelen
Committed by
GitHub
Jul 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new fields to the merge request struct (#64)
parent
3cc76e19
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
merge_requests.go
merge_requests.go
+8
-3
No files found.
merge_requests.go
View file @
2df15271
...
@@ -75,7 +75,13 @@ type MergeRequest struct {
...
@@ -75,7 +75,13 @@ type MergeRequest struct {
UpdatedAt
time
.
Time
`json:"updated_at"`
UpdatedAt
time
.
Time
`json:"updated_at"`
DueDate
string
`json:"due_date"`
DueDate
string
`json:"due_date"`
}
`json:"milestone"`
}
`json:"milestone"`
Files
[]
struct
{
MergeWhenBuildSucceeds
bool
`json:"merge_when_build_succeeds"`
MergeStatus
string
`json:"merge_status"`
Subscribed
bool
`json:"subscribed"`
UserNotesCount
int
`json:"user_notes_count"`
SouldRemoveSourceBranch
bool
`json:"should_remove_source_branch"`
ForceRemoveSourceBranch
bool
`json:"force_remove_source_branch"`
Changes
[]
struct
{
OldPath
string
`json:"old_path"`
OldPath
string
`json:"old_path"`
NewPath
string
`json:"new_path"`
NewPath
string
`json:"new_path"`
AMode
string
`json:"a_mode"`
AMode
string
`json:"a_mode"`
...
@@ -84,8 +90,7 @@ type MergeRequest struct {
...
@@ -84,8 +90,7 @@ type MergeRequest struct {
NewFile
bool
`json:"new_file"`
NewFile
bool
`json:"new_file"`
RenamedFile
bool
`json:"renamed_file"`
RenamedFile
bool
`json:"renamed_file"`
DeletedFile
bool
`json:"deleted_file"`
DeletedFile
bool
`json:"deleted_file"`
}
`json:"files"`
}
`json:"changes"`
MergeStatus
string
`json:"merge_status"`
}
}
func
(
m
MergeRequest
)
String
()
string
{
func
(
m
MergeRequest
)
String
()
string
{
...
...
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