Commit 62d7cf5d authored by sue445's avatar sue445

Add AvatarURL and WebURL to MergeRequest resource

There are already available in v11.11.2
https://docs.gitlab.com/ee/api/merge_requests.html#get-single-mr
parent 9d665abb
......@@ -51,6 +51,8 @@ type MergeRequest struct {
Name string `json:"name"`
State string `json:"state"`
CreatedAt *time.Time `json:"created_at"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `json:"author"`
Assignee struct {
ID int `json:"id"`
......@@ -58,6 +60,8 @@ type MergeRequest struct {
Name string `json:"name"`
State string `json:"state"`
CreatedAt *time.Time `json:"created_at"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `json:"assignee"`
SourceProjectID int `json:"source_project_id"`
TargetProjectID int `json:"target_project_id"`
......@@ -73,6 +77,8 @@ type MergeRequest struct {
Name string `json:"name"`
State string `json:"state"`
CreatedAt *time.Time `json:"created_at"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `json:"merged_by"`
MergedAt *time.Time `json:"merged_at"`
ClosedBy struct {
......@@ -81,6 +87,8 @@ type MergeRequest struct {
Name string `json:"name"`
State string `json:"state"`
CreatedAt *time.Time `json:"created_at"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `json:"closed_by"`
ClosedAt *time.Time `json:"closed_at"`
Subscribed bool `json:"subscribed"`
......
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