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
7e04b0a0
Unverified
Commit
7e04b0a0
authored
Sep 21, 2019
by
Minh-Quan TRAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync AcceptMergeRequestOptions with API
Signed-off-by:
Minh-Quan TRAN
<
account@itscaro.me
>
parent
66786127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
merge_requests.go
merge_requests.go
+2
-0
No files found.
merge_requests.go
View file @
7e04b0a0
...
@@ -578,6 +578,8 @@ func (s *MergeRequestsService) DeleteMergeRequest(pid interface{}, mergeRequest
...
@@ -578,6 +578,8 @@ func (s *MergeRequestsService) DeleteMergeRequest(pid interface{}, mergeRequest
// https://docs.gitlab.com/ce/api/merge_requests.html#accept-mr
// https://docs.gitlab.com/ce/api/merge_requests.html#accept-mr
type
AcceptMergeRequestOptions
struct
{
type
AcceptMergeRequestOptions
struct
{
MergeCommitMessage
*
string
`url:"merge_commit_message,omitempty" json:"merge_commit_message,omitempty"`
MergeCommitMessage
*
string
`url:"merge_commit_message,omitempty" json:"merge_commit_message,omitempty"`
SquashCommitMessage
*
string
`url:"squash_commit_message,omitempty" json:"squash_commit_message,omitempty"`
Squash
*
bool
`url:"squash,omitempty" json:"squash,omitempty"`
ShouldRemoveSourceBranch
*
bool
`url:"should_remove_source_branch,omitempty" json:"should_remove_source_branch,omitempty"`
ShouldRemoveSourceBranch
*
bool
`url:"should_remove_source_branch,omitempty" json:"should_remove_source_branch,omitempty"`
MergeWhenPipelineSucceeds
*
bool
`url:"merge_when_pipeline_succeeds,omitempty" json:"merge_when_pipeline_succeeds,omitempty"`
MergeWhenPipelineSucceeds
*
bool
`url:"merge_when_pipeline_succeeds,omitempty" json:"merge_when_pipeline_succeeds,omitempty"`
SHA
*
string
`url:"sha,omitempty" json:"sha,omitempty"`
SHA
*
string
`url:"sha,omitempty" json:"sha,omitempty"`
...
...
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