Package org.gitlab4j.api.models
Class AcceptMergeRequestParams
java.lang.Object
org.gitlab4j.api.models.AcceptMergeRequestParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetForm()Get the form params specified by this instance.withMergeCommitMessage(String mergeCommitMessage) Custom merge commit message.withMergeWhenPipelineSucceeds(Boolean mergeWhenPipelineSucceeds) Iftruethe MR is merged when the pipeline succeeds.If present, then this SHA must match the HEAD of the source branch, otherwise the merge will fail.withShouldRemoveSourceBranch(Boolean shouldRemoveSourceBranch) Iftrueremoves the source branch.withSquash(Boolean squash) Iftruethe commits will be squashed into a single commit on merge.withSquashCommitMessage(String squashCommitMessage) Custom squash commit message.
-
Constructor Details
-
AcceptMergeRequestParams
public AcceptMergeRequestParams()
-
-
Method Details
-
withMergeCommitMessage
Custom merge commit message.- Parameters:
mergeCommitMessage- Custom merge commit message- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
withMergeWhenPipelineSucceeds
Iftruethe MR is merged when the pipeline succeeds.- Parameters:
mergeWhenPipelineSucceeds- Iftruethe MR is merged when the pipeline succeeds.- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
withSha
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
Iftrueremoves the source branch.- Parameters:
shouldRemoveSourceBranch- Iftrueremoves the source branch.- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
withSquash
Iftruethe commits will be squashed into a single commit on merge.- Parameters:
squash- Iftruethe commits will be squashed into a single commit on merge.- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
withSquashCommitMessage
Custom squash commit message.- Parameters:
squashCommitMessage- Custom squash commit message.- Returns:
- The reference to this AcceptMergeRequestParams instance.
-
getForm
Get the form params specified by this instance.- Returns:
- a GitLabApiForm instance holding the form parameters for this AcceptMergeRequestParams instance
-