Unverified Commit f05516d0 authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Merge pull request #633 from sue445/merge_request_attributes

Add AvatarURL and WebURL to MergeRequest resource
parents 9d665abb 62d7cf5d
...@@ -51,6 +51,8 @@ type MergeRequest struct { ...@@ -51,6 +51,8 @@ type MergeRequest struct {
Name string `json:"name"` Name string `json:"name"`
State string `json:"state"` State string `json:"state"`
CreatedAt *time.Time `json:"created_at"` CreatedAt *time.Time `json:"created_at"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `json:"author"` } `json:"author"`
Assignee struct { Assignee struct {
ID int `json:"id"` ID int `json:"id"`
...@@ -58,6 +60,8 @@ type MergeRequest struct { ...@@ -58,6 +60,8 @@ type MergeRequest struct {
Name string `json:"name"` Name string `json:"name"`
State string `json:"state"` State string `json:"state"`
CreatedAt *time.Time `json:"created_at"` CreatedAt *time.Time `json:"created_at"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `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"`
...@@ -73,6 +77,8 @@ type MergeRequest struct { ...@@ -73,6 +77,8 @@ type MergeRequest struct {
Name string `json:"name"` Name string `json:"name"`
State string `json:"state"` State string `json:"state"`
CreatedAt *time.Time `json:"created_at"` CreatedAt *time.Time `json:"created_at"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `json:"merged_by"` } `json:"merged_by"`
MergedAt *time.Time `json:"merged_at"` MergedAt *time.Time `json:"merged_at"`
ClosedBy struct { ClosedBy struct {
...@@ -81,6 +87,8 @@ type MergeRequest struct { ...@@ -81,6 +87,8 @@ type MergeRequest struct {
Name string `json:"name"` Name string `json:"name"`
State string `json:"state"` State string `json:"state"`
CreatedAt *time.Time `json:"created_at"` CreatedAt *time.Time `json:"created_at"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `json:"closed_by"` } `json:"closed_by"`
ClosedAt *time.Time `json:"closed_at"` ClosedAt *time.Time `json:"closed_at"`
Subscribed bool `json:"subscribed"` 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