Commit 2df15271 authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Add new fields to the merge request struct (#64)

parent 3cc76e19
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment