Commit d6ed0f17 authored by Sander van Harmelen's avatar Sander van Harmelen

Add a comment and remove a blank line to satify goling

parent 54c56513
...@@ -96,6 +96,14 @@ type MergeRequest struct { ...@@ -96,6 +96,14 @@ type MergeRequest struct {
WebURL string `json:"web_url"` WebURL string `json:"web_url"`
} }
func (m MergeRequest) String() string {
return Stringify(m)
}
// MergeRequestApprovals represents GitLab merge request approvals.
//
// GitLab API docs:
// https://docs.gitlab.com/ee/api/merge_requests.html#merge-request-approvals
type MergeRequestApprovals struct { type MergeRequestApprovals struct {
ID int `json:"id"` ID int `json:"id"`
ProjectID int `json:"project_id"` ProjectID int `json:"project_id"`
...@@ -119,10 +127,6 @@ type MergeRequestApprovals struct { ...@@ -119,10 +127,6 @@ type MergeRequestApprovals struct {
} `json:"approved_by"` } `json:"approved_by"`
} }
func (m MergeRequest) String() string {
return Stringify(m)
}
func (m MergeRequestApprovals) String() string { func (m MergeRequestApprovals) String() string {
return Stringify(m) return Stringify(m)
} }
...@@ -249,7 +253,6 @@ func (s *MergeRequestsService) GetMergeRequest(pid interface{}, mergeRequest int ...@@ -249,7 +253,6 @@ func (s *MergeRequestsService) GetMergeRequest(pid interface{}, mergeRequest int
// //
// GitLab API docs: // GitLab API docs:
// https://docs.gitlab.com/ee/api/merge_requests.html#merge-request-approvals // https://docs.gitlab.com/ee/api/merge_requests.html#merge-request-approvals
func (s *MergeRequestsService) GetMergeRequestApprovals(pid interface{}, mergeRequest int, options ...OptionFunc) (*MergeRequestApprovals, *Response, error) { func (s *MergeRequestsService) GetMergeRequestApprovals(pid interface{}, mergeRequest int, options ...OptionFunc) (*MergeRequestApprovals, *Response, error) {
project, err := parseID(pid) project, err := parseID(pid)
if err != nil { if err != nil {
......
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