public class MergeRequestParams extends Object
| Constructor and Description |
|---|
MergeRequestParams() |
| Modifier and Type | Method and Description |
|---|---|
GitLabApiForm |
getForm(boolean isCreate)
Get the form params specified by this instance.
|
MergeRequestParams |
withAllowCollaboration(Boolean allowCollaboration)
Allow commits from members who can merge to the target branch.
|
MergeRequestParams |
withApprovalsBeforeMerge(Integer approvalsBeforeMerge)
Set the approvals_before_merge field value.
|
MergeRequestParams |
withAssigneeId(Integer assigneeId)
Set the assignee user ID.
|
MergeRequestParams |
withAssigneeIds(List<Integer> assigneeIds)
The ID of the user(s) to assign the merge request to.
|
MergeRequestParams |
withDescription(String description)
Set the description of the merge request.
|
MergeRequestParams |
withDiscussionLocked(Boolean discussionLocked)
Flag indicating if the merge request’s discussion is locked.
|
MergeRequestParams |
withLabels(List<String> labels)
Set the labels for the merge request.
|
MergeRequestParams |
withLabels(String[] labels)
Set the labels for the merge request.
|
MergeRequestParams |
withMilestoneId(Integer milestoneId)
Set the milestone ID field value.
|
MergeRequestParams |
withRemoveSourceBranch(Boolean removeSourceBranch)
Flag indicating if a merge request should remove the source branch when merging.
|
MergeRequestParams |
withSourceBranch(String sourceBranch)
Set the source branch.
|
MergeRequestParams |
withSquash(Boolean squash)
Squash commits into a single commit when merging.
|
MergeRequestParams |
withStateEvent(Constants.StateEvent stateEvent)
New state (close/reopen).
|
MergeRequestParams |
withTargetBranch(String targetBranch)
Set the target branch.
|
MergeRequestParams |
withTargetProjectId(Integer targetProjectId)
Set the target project ID.
|
MergeRequestParams |
withTitle(String title)
Set the title of the merge request.
|
public MergeRequestParams withSourceBranch(String sourceBranch)
sourceBranch - the sourceBranch to setpublic MergeRequestParams withTargetBranch(String targetBranch)
targetBranch - the targetBranch to setpublic MergeRequestParams withTitle(String title)
title - the title to setpublic MergeRequestParams withAssigneeId(Integer assigneeId)
assigneeId - the assigneeId to setpublic MergeRequestParams withAssigneeIds(List<Integer> assigneeIds)
assigneeIds - the assigneeIds to setpublic MergeRequestParams withMilestoneId(Integer milestoneId)
milestoneId - the milestoneId to setpublic MergeRequestParams withLabels(List<String> labels)
labels - the List of labels to setpublic MergeRequestParams withLabels(String[] labels)
labels - the array of labels to setpublic MergeRequestParams withDescription(String description)
description - the description to setpublic MergeRequestParams withTargetProjectId(Integer targetProjectId)
targetProjectId - the targetProjectId to setpublic MergeRequestParams withStateEvent(Constants.StateEvent stateEvent)
stateEvent - the stateEvent to setpublic MergeRequestParams withRemoveSourceBranch(Boolean removeSourceBranch)
removeSourceBranch - the removeSourceBranch to setpublic MergeRequestParams withSquash(Boolean squash)
squash - the squash to setpublic MergeRequestParams withDiscussionLocked(Boolean discussionLocked)
discussionLocked - the discussionLocked to setpublic MergeRequestParams withAllowCollaboration(Boolean allowCollaboration)
allowCollaboration - the allowCollaboration to setpublic MergeRequestParams withApprovalsBeforeMerge(Integer approvalsBeforeMerge)
approvalsBeforeMerge - the approvalsBeforeMerge to setpublic GitLabApiForm getForm(boolean isCreate)
isCreate - set to true if this is for a create merge request API call,
set to false if this is for an update merge requestCopyright © 2019. All rights reserved.