public class MergeRequestApi extends AbstractApi
Modifier and Type | Method and Description |
---|---|
MergeRequest |
createMergeRequest(Integer projectId,
String sourceBranch,
String targetBranch,
String title,
String description,
Integer assigneeId)
Creates a merge request and optionally assigns a reviewer to it.
|
MergeRequest |
getMergeRequest(Integer projectId,
Integer mergeRequestId)
Get information about a single merge request.
|
List<MergeRequest> |
getMergeRequests(Integer projectId)
Get all merge requests for the specified project.
|
MergeRequest |
updateMergeRequest(Integer projectId,
Integer mergeRequestId,
String sourceBranch,
String targetBranch,
String title,
String description,
Integer assigneeId)
Updates an existing merge request.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, handle, post, post, post, put, put, validate
public List<MergeRequest> getMergeRequests(Integer projectId) throws GitLabApiException
projectId
- the project ID to get the merge requests forGitLabApiException
public MergeRequest getMergeRequest(Integer projectId, Integer mergeRequestId) throws GitLabApiException
projectId
- mergeRequestId
- GitLabApiException
public MergeRequest createMergeRequest(Integer projectId, String sourceBranch, String targetBranch, String title, String description, Integer assigneeId) throws GitLabApiException
projectId
- the ID of a project, requiredsourceBranch
- the source branch, requiredtargetBranch
- the target branch, requiredtitle
- the title for the merge request, requireddescription
- the description of the merge requestassigneeId
- the Assignee user ID, optionalGitLabApiException
public MergeRequest updateMergeRequest(Integer projectId, Integer mergeRequestId, String sourceBranch, String targetBranch, String title, String description, Integer assigneeId) throws GitLabApiException
projectId
- mergeRequestId
- sourceBranch
- targetBranch
- title
- description
- assigneeId
- GitLabApiException
Copyright © 2017. All rights reserved.