Package | Description |
---|---|
org.gitlab4j.api | |
org.gitlab4j.api.models |
Modifier and Type | Method and Description |
---|---|
MergeRequest |
MergeRequestApi.createMergeRequest(Object projectIdOrPath,
MergeRequestParams params)
Creates a merge request.
|
MergeRequest |
MergeRequestApi.updateMergeRequest(Object projectIdOrPath,
Integer mergeRequestIid,
MergeRequestParams params)
Updates an existing merge request.
|
Modifier and Type | Method and Description |
---|---|
MergeRequestParams |
MergeRequestParams.withAllowCollaboration(Boolean allowCollaboration)
Allow commits from members who can merge to the target branch.
|
MergeRequestParams |
MergeRequestParams.withApprovalsBeforeMerge(Integer approvalsBeforeMerge)
Set the approvals_before_merge field value.
|
MergeRequestParams |
MergeRequestParams.withAssigneeId(Integer assigneeId)
Set the assignee user ID.
|
MergeRequestParams |
MergeRequestParams.withAssigneeIds(List<Integer> assigneeIds)
The ID of the user(s) to assign the merge request to.
|
MergeRequestParams |
MergeRequestParams.withDescription(String description)
Set the description of the merge request.
|
MergeRequestParams |
MergeRequestParams.withDiscussionLocked(Boolean discussionLocked)
Flag indicating if the merge request’s discussion is locked.
|
MergeRequestParams |
MergeRequestParams.withLabels(List<String> labels)
Set the labels for the merge request.
|
MergeRequestParams |
MergeRequestParams.withLabels(String[] labels)
Set the labels for the merge request.
|
MergeRequestParams |
MergeRequestParams.withMilestoneId(Integer milestoneId)
Set the milestone ID field value.
|
MergeRequestParams |
MergeRequestParams.withRemoveSourceBranch(Boolean removeSourceBranch)
Flag indicating if a merge request should remove the source branch when merging.
|
MergeRequestParams |
MergeRequestParams.withSourceBranch(String sourceBranch)
Set the source branch.
|
MergeRequestParams |
MergeRequestParams.withSquash(Boolean squash)
Squash commits into a single commit when merging.
|
MergeRequestParams |
MergeRequestParams.withStateEvent(Constants.StateEvent stateEvent)
New state (close/reopen).
|
MergeRequestParams |
MergeRequestParams.withTargetBranch(String targetBranch)
Set the target branch.
|
MergeRequestParams |
MergeRequestParams.withTargetProjectId(Integer targetProjectId)
Set the target project ID.
|
MergeRequestParams |
MergeRequestParams.withTitle(String title)
Set the title of the merge request.
|
Copyright © 2019. All rights reserved.