Package org.gitlab4j.api.models
Class AcceptMergeRequestParams
- java.lang.Object
-
- org.gitlab4j.api.models.AcceptMergeRequestParams
-
- All Implemented Interfaces:
java.io.Serializable
public class AcceptMergeRequestParams extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AcceptMergeRequestParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
Iftrue
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)
Iftrue
removes the source branch.AcceptMergeRequestParams
withSquash(java.lang.Boolean squash)
Iftrue
the commits will be squashed into a single commit on merge.AcceptMergeRequestParams
withSquashCommitMessage(java.lang.String squashCommitMessage)
Custom squash commit message.
-
-
-
Method Detail
-
withMergeCommitMessage
public AcceptMergeRequestParams withMergeCommitMessage(java.lang.String mergeCommitMessage)
Custom merge commit message.- Parameters:
mergeCommitMessage
- Custom merge commit message- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
withMergeWhenPipelineSucceeds
public AcceptMergeRequestParams withMergeWhenPipelineSucceeds(java.lang.Boolean mergeWhenPipelineSucceeds)
Iftrue
the MR is merged when the pipeline succeeds.- Parameters:
mergeWhenPipelineSucceeds
- Iftrue
the MR is merged when the pipeline succeeds.- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
withSha
public AcceptMergeRequestParams withSha(java.lang.String sha)
If present, then this SHA must match the HEAD of the source branch, otherwise the merge will fail.- Parameters:
sha
- If present, then this SHA must match the HEAD of the source branch, otherwise the merge will fail.- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
withShouldRemoveSourceBranch
public AcceptMergeRequestParams withShouldRemoveSourceBranch(java.lang.Boolean shouldRemoveSourceBranch)
Iftrue
removes the source branch.- Parameters:
shouldRemoveSourceBranch
- Iftrue
removes the source branch.- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
withSquash
public AcceptMergeRequestParams withSquash(java.lang.Boolean squash)
Iftrue
the commits will be squashed into a single commit on merge.- Parameters:
squash
- Iftrue
the commits will be squashed into a single commit on merge.- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
withSquashCommitMessage
public AcceptMergeRequestParams withSquashCommitMessage(java.lang.String squashCommitMessage)
Custom squash commit message.- Parameters:
squashCommitMessage
- Custom squash commit message.- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
getForm
public GitLabApiForm getForm()
Get the form params specified by this instance.- Returns:
- a GitLabApiForm instance holding the form parameters for this AcceptMergeRequestParams instance
-
-