Commit f1f4b500 authored by jbguerraz's avatar jbguerraz Committed by Sander van Harmelen

replaced milestone representing struct into merge_requests.go (#5) (#259)

parent 9d17e2d4
...@@ -60,33 +60,23 @@ type MergeRequest struct { ...@@ -60,33 +60,23 @@ type MergeRequest struct {
State string `json:"state"` State string `json:"state"`
CreatedAt *time.Time `json:"created_at"` CreatedAt *time.Time `json:"created_at"`
} `json:"assignee"` } `json:"assignee"`
SourceProjectID int `json:"source_project_id"` SourceProjectID int `json:"source_project_id"`
TargetProjectID int `json:"target_project_id"` TargetProjectID int `json:"target_project_id"`
Labels []string `json:"labels"` Labels []string `json:"labels"`
Description string `json:"description"` Description string `json:"description"`
WorkInProgress bool `json:"work_in_progress"` WorkInProgress bool `json:"work_in_progress"`
Milestone struct { Milestone *Milestone `json:"milestone"`
ID int `json:"id"` MergeWhenPipelineSucceeds bool `json:"merge_when_pipeline_succeeds"`
IID int `json:"iid"` MergeStatus string `json:"merge_status"`
ProjectID int `json:"project_id"` Subscribed bool `json:"subscribed"`
Title string `json:"title"` SHA string `json:"sha"`
Description string `json:"description"` MergeCommitShaSHA string `json:"merge_commit_sha"`
State string `json:"state"` UserNotesCount int `json:"user_notes_count"`
CreatedAt *time.Time `json:"created_at"` ChangesCount int `json:"changes_count"`
UpdatedAt *time.Time `json:"updated_at"` SouldRemoveSourceBranch bool `json:"should_remove_source_branch"`
DueDate string `json:"due_date"` ForceRemoveSourceBranch bool `json:"force_remove_source_branch"`
} `json:"milestone"` WebURL string `json:"web_url"`
MergeWhenPipelineSucceeds bool `json:"merge_when_pipeline_succeeds"` DiscussionLocked bool `json:"discussion_locked"`
MergeStatus string `json:"merge_status"`
Subscribed bool `json:"subscribed"`
SHA string `json:"sha"`
MergeCommitShaSHA string `json:"merge_commit_sha"`
UserNotesCount int `json:"user_notes_count"`
ChangesCount int `json:"changes_count"`
SouldRemoveSourceBranch bool `json:"should_remove_source_branch"`
ForceRemoveSourceBranch bool `json:"force_remove_source_branch"`
WebURL string `json:"web_url"`
DiscussionLocked bool `json:"discussion_locked"`
Changes []struct { Changes []struct {
OldPath string `json:"old_path"` OldPath string `json:"old_path"`
NewPath string `json:"new_path"` NewPath string `json:"new_path"`
......
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