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