Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
d6ed0f17
Commit
d6ed0f17
authored
Sep 22, 2017
by
Sander van Harmelen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a comment and remove a blank line to satify goling
parent
54c56513
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
merge_requests.go
merge_requests.go
+8
-5
No files found.
merge_requests.go
View file @
d6ed0f17
...
...
@@ -96,6 +96,14 @@ type MergeRequest struct {
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
{
ID
int
`json:"id"`
ProjectID
int
`json:"project_id"`
...
...
@@ -119,10 +127,6 @@ type MergeRequestApprovals struct {
}
`json:"approved_by"`
}
func
(
m
MergeRequest
)
String
()
string
{
return
Stringify
(
m
)
}
func
(
m
MergeRequestApprovals
)
String
()
string
{
return
Stringify
(
m
)
}
...
...
@@ -249,7 +253,6 @@ func (s *MergeRequestsService) GetMergeRequest(pid interface{}, mergeRequest int
//
// GitLab API docs:
// 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
)
{
project
,
err
:=
parseID
(
pid
)
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment