public class AcceptMergeRequestParams
extends java.lang.Object
Constructor and Description |
---|
AcceptMergeRequestParams() |
Modifier and Type | Method and Description |
---|---|
GitLabApiForm |
getForm()
Get the form params specified by this instance.
|
AcceptMergeRequestParams |
withMergeCommitMessage(java.lang.String mergeCommitMessage)
Custom merge commit message.
|
AcceptMergeRequestParams |
withMergeWhenPipelineSucceeds(java.lang.Boolean mergeWhenPipelineSucceeds)
If
true the MR is merged when the pipeline succeeds. |
AcceptMergeRequestParams |
withSha(java.lang.String sha)
If present, then this SHA must match the HEAD of the source branch, otherwise the merge will fail.
|
AcceptMergeRequestParams |
withShouldRemoveSourceBranch(java.lang.Boolean shouldRemoveSourceBranch)
If
true removes the source branch. |
AcceptMergeRequestParams |
withSquash(java.lang.Boolean squash)
If
true the commits will be squashed into a single commit on merge. |
AcceptMergeRequestParams |
withSquashCommitMessage(java.lang.String squashCommitMessage)
Custom squash commit message.
|
public AcceptMergeRequestParams withMergeCommitMessage(java.lang.String mergeCommitMessage)
mergeCommitMessage
- Custom merge commit messagepublic AcceptMergeRequestParams withMergeWhenPipelineSucceeds(java.lang.Boolean mergeWhenPipelineSucceeds)
true
the MR is merged when the pipeline succeeds.mergeWhenPipelineSucceeds
- If true
the MR is merged when the pipeline succeeds.public AcceptMergeRequestParams withSha(java.lang.String sha)
sha
- If present, then this SHA must match the HEAD of the source branch, otherwise the merge will fail.public AcceptMergeRequestParams withShouldRemoveSourceBranch(java.lang.Boolean shouldRemoveSourceBranch)
true
removes the source branch.shouldRemoveSourceBranch
- If true
removes the source branch.public AcceptMergeRequestParams withSquash(java.lang.Boolean squash)
true
the commits will be squashed into a single commit on merge.squash
- If true
the commits will be squashed into a single commit on merge.public AcceptMergeRequestParams withSquashCommitMessage(java.lang.String squashCommitMessage)
squashCommitMessage
- Custom squash commit message.public GitLabApiForm getForm()