public class MergeRequestApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.AutoDevopsDeployStrategy, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.ContributorOrderBy, Constants.DefaultBranchProtectionLevel, Constants.DeploymentOrderBy, Constants.DeploymentStatus, Constants.DeployTokenScope, Constants.Encoding, Constants.EpicOrderBy, Constants.EventScope, Constants.GroupOrderBy, Constants.GroupSearchScope, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestSearchIn, Constants.MergeRequestState, Constants.MilestoneState, Constants.PackageOrderBy, Constants.PackageStatus, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectAccessTokenScope, Constants.ProjectCreationLevel, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.SquashOption, Constants.StateEvent, Constants.SubgroupCreationLevel, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
gitLabApi
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Constructor and Description |
---|
MergeRequestApi(GitLabApi gitLabApi) |
Modifier and Type | Method and Description |
---|---|
MergeRequest |
acceptMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Merge changes to the merge request.
|
MergeRequest |
acceptMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
AcceptMergeRequestParams params)
Merge changes to the merge request.
|
MergeRequest |
acceptMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.String mergeCommitMessage,
java.lang.Boolean shouldRemoveSourceBranch,
java.lang.Boolean mergeWhenPipelineSucceeds)
Merge changes to the merge request.
|
MergeRequest |
acceptMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.String mergeCommitMessage,
java.lang.Boolean shouldRemoveSourceBranch,
java.lang.Boolean mergeWhenPipelineSucceeds,
java.lang.String sha)
Merge changes to the merge request.
|
MergeRequest |
approveMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.String sha)
Approve a merge request.
|
MergeRequest |
cancelMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Cancel merge when pipeline succeeds.
|
ApprovalRule |
createApprovalRule(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Long projectRuleId,
ApprovalRuleParams params)
Create a merge request level approval rule.
|
MergeRequest |
createMergeRequest(java.lang.Object projectIdOrPath,
MergeRequestParams params)
Creates a merge request.
|
MergeRequest |
createMergeRequest(java.lang.Object projectIdOrPath,
java.lang.String sourceBranch,
java.lang.String targetBranch,
java.lang.String title,
java.lang.String description,
java.lang.Long assigneeId)
Creates a merge request and optionally assigns a reviewer to it.
|
MergeRequest |
createMergeRequest(java.lang.Object projectIdOrPath,
java.lang.String sourceBranch,
java.lang.String targetBranch,
java.lang.String title,
java.lang.String description,
java.lang.Long assigneeId,
java.lang.Long targetProjectId,
java.lang.String[] labels,
java.lang.Long milestoneId,
java.lang.Boolean removeSourceBranch)
Creates a merge request.
|
MergeRequest |
createMergeRequest(java.lang.Object projectIdOrPath,
java.lang.String sourceBranch,
java.lang.String targetBranch,
java.lang.String title,
java.lang.String description,
java.lang.Long assigneeId,
java.lang.Long targetProjectId,
java.lang.String[] labels,
java.lang.Long milestoneId,
java.lang.Boolean removeSourceBranch,
java.lang.Boolean squash)
Creates a merge request.
|
Pipeline |
createMergeRequestPipeline(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Create a new pipeline for a merge request.
|
void |
deleteApprovalRule(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Long approvalRuleId)
Delete the specified the merge request level approval rule.
|
void |
deleteMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Only for admins and project owners.
|
java.util.List<ApprovalRule> |
getApprovalRules(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a list of the merge request level approval rules.
|
Pager<ApprovalRule> |
getApprovalRules(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int itemsPerPage)
Get a Pager of the merge request level approval rules.
|
java.util.stream.Stream<ApprovalRule> |
getApprovalRulesStream(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a Stream of the merge request level approval rules.
|
MergeRequest |
getApprovals(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get the merge request with approval information.
|
ApprovalState |
getApprovalState(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get the approval state of a merge request.
|
java.util.List<Issue> |
getApprovalStatus(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get list containing all the issues that would be closed by merging the provided merge request.
|
java.util.List<Issue> |
getClosesIssues(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get list containing all the issues that would be closed by merging the provided merge request.
|
Pager<Issue> |
getClosesIssues(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int itemsPerPage)
Get a Pager containing all the issues that would be closed by merging the provided merge request.
|
java.util.List<Issue> |
getClosesIssues(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int page,
int perPage)
Get list containing all the issues that would be closed by merging the provided merge request.
|
java.util.stream.Stream<Issue> |
getClosesIssuesStream(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get Stream containing all the issues that would be closed by merging the provided merge request.
|
java.util.List<Commit> |
getCommits(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a list of merge request commits.
|
Pager<Commit> |
getCommits(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int itemsPerPage)
Get a Pager of merge request commits.
|
java.util.List<Commit> |
getCommits(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int page,
int perPage)
Get a list of merge request commits.
|
java.util.stream.Stream<Commit> |
getCommitsStream(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a Stream of merge request commits.
|
java.util.List<Diff> |
getDiffs(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a list of merge request diffs.
|
Pager<Diff> |
getDiffs(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int itemsPerPage)
Get a Pager of merge request diffs.
|
java.util.stream.Stream<Diff> |
getDiffsStream(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a Stream of merge request diffs.
|
MergeRequestDiff |
getDiffVersion(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Long versionId)
Get a single merge request diff version.
|
java.util.List<MergeRequestVersion> |
getDiffVersions(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a list of merge request diff versions.
|
Pager<MergeRequestVersion> |
getDiffVersions(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int itemsPerPage)
Get a Pager of merge request diff versions.
|
java.util.stream.Stream<MergeRequestVersion> |
getDiffVersionsStream(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a Stream of merge request diff versions.
|
MergeRequest |
getMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get information about a single merge request.
|
MergeRequest |
getMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Boolean renderHtml,
java.lang.Boolean includeDivergedCommitCount,
java.lang.Boolean includeRebaseInProgress)
Get information about a single merge request.
|
MergeRequest |
getMergeRequestApprovals(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get the merge request with approval information.
|
MergeRequest |
getMergeRequestChanges(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get merge request with changes information.
|
MergeRequestDiff |
getMergeRequestDiff(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Long versionId)
Deprecated.
use
getDiffVersion(Object, Long, Long) instead |
java.util.List<MergeRequestDiff> |
getMergeRequestDiffs(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Deprecated.
use
getDiffVersions(Object, Long) instead |
Pager<MergeRequestDiff> |
getMergeRequestDiffs(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int itemsPerPage)
Deprecated.
use
getDiffVersions(Object, Long, int) instead |
java.util.stream.Stream<MergeRequestDiff> |
getMergeRequestDiffsStream(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Deprecated.
use
getDiffVersionsStream(Object, Long) instead |
java.util.List<Pipeline> |
getMergeRequestPipelines(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a list of pipelines for a merge request.
|
Pager<Pipeline> |
getMergeRequestPipelines(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int itemsPerPage)
Get a Pager of pipelines for a merge request.
|
java.util.stream.Stream<Pipeline> |
getMergeRequestPipelinesStream(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get a Stream of pipelines for a merge request.
|
java.util.List<MergeRequest> |
getMergeRequests(MergeRequestFilter filter)
Get all merge requests matching the filter.
|
Pager<MergeRequest> |
getMergeRequests(MergeRequestFilter filter,
int itemsPerPage)
Get all merge requests matching the filter.
|
java.util.List<MergeRequest> |
getMergeRequests(MergeRequestFilter filter,
int page,
int perPage)
Get all merge requests matching the filter.
|
java.util.List<MergeRequest> |
getMergeRequests(java.lang.Object projectIdOrPath)
Get all merge requests for the specified project.
|
java.util.List<MergeRequest> |
getMergeRequests(java.lang.Object projectIdOrPath,
Constants.MergeRequestState state)
Get all merge requests with a specific state for the specified project.
|
Pager<MergeRequest> |
getMergeRequests(java.lang.Object projectIdOrPath,
Constants.MergeRequestState state,
int itemsPerPage)
Get all merge requests for the specified project.
|
java.util.List<MergeRequest> |
getMergeRequests(java.lang.Object projectIdOrPath,
Constants.MergeRequestState state,
int page,
int perPage)
Get all merge requests for the specified project.
|
Pager<MergeRequest> |
getMergeRequests(java.lang.Object projectIdOrPath,
int itemsPerPage)
Get all merge requests for the specified project.
|
java.util.List<MergeRequest> |
getMergeRequests(java.lang.Object projectIdOrPath,
int page,
int perPage)
Get all merge requests for the specified project.
|
java.util.stream.Stream<MergeRequest> |
getMergeRequestsStream(MergeRequestFilter filter)
Get all merge requests matching the filter as a Stream.
|
java.util.stream.Stream<MergeRequest> |
getMergeRequestsStream(java.lang.Object projectIdOrPath)
Get all merge requests for the specified project as a Stream
|
java.util.stream.Stream<MergeRequest> |
getMergeRequestsStream(java.lang.Object projectIdOrPath,
Constants.MergeRequestState state)
Get all merge requests with a specific state for the specified project as a Stream.
|
java.util.Optional<MergeRequestDiff> |
getOptionalDiffVersion(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Long versionId)
Get a single merge request diff version as an Optional instance.
|
java.util.Optional<MergeRequest> |
getOptionalMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get information about a single merge request as an Optional instance.
|
java.util.Optional<MergeRequest> |
getOptionalMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Boolean renderHtml,
java.lang.Boolean includeDivergedCommitCount,
java.lang.Boolean includeRebaseInProgress)
Get information about a single merge request as an Optional instance.
|
java.util.Optional<MergeRequestDiff> |
getOptionalMergeRequestDiff(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Long versionId)
Deprecated.
use
getOptionalDiffVersion(Object, Long, Long) instead |
java.util.List<Participant> |
getParticipants(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get list of participants of merge request.
|
Pager<Participant> |
getParticipants(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int itemsPerPage)
Get a Pager of the participants of merge request.
|
java.util.List<Participant> |
getParticipants(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int page,
int perPage)
Get list of participants of merge request and in the specified page range.
|
java.util.stream.Stream<Participant> |
getParticipantsStream(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get Stream of participants of merge request.
|
MergeRequest |
getRebaseStatus(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Get the merge request info containing the status of a merge request rebase.
|
MergeRequest |
rebaseMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Automatically rebase the source_branch of the merge request against its target_branch.
|
MergeRequest |
unapproveMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Unapprove a merge request.
|
ApprovalRule |
updateApprovalRule(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Long approvalRuleId,
ApprovalRuleParams params)
Update the specified the merge request level approval rule.
|
MergeRequest |
updateMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
MergeRequestParams params)
Updates an existing merge request.
|
MergeRequest |
updateMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.String targetBranch,
java.lang.String title,
java.lang.Long assigneeId,
java.lang.String description,
Constants.StateEvent stateEvent,
java.lang.String labels,
java.lang.Long milestoneId,
java.lang.Boolean removeSourceBranch,
java.lang.Boolean squash,
java.lang.Boolean discussionLocked,
java.lang.Boolean allowCollaboration)
Updates an existing merge request.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getLabelIdOrName, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, patch, patch, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, upload, urlEncode, validate
public MergeRequestApi(GitLabApi gitLabApi)
public java.util.List<MergeRequest> getMergeRequests(MergeRequestFilter filter) throws GitLabApiException
GitLab Endpoint: GET /merge_requests
filter
- a MergeRequestFilter instance with the filter settingsGitLabApiException
- if any exception occursputpublic java.util.List<MergeRequest> getMergeRequests(MergeRequestFilter filter, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /merge_requests
filter
- a MergeRequestFilter instance with the filter settingspage
- the page to getperPage
- the number of MergeRequest instances per pageGitLabApiException
- if any exception occurspublic Pager<MergeRequest> getMergeRequests(MergeRequestFilter filter, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /merge_requests
filter
- a MergeRequestFilter instance with the filter settingsitemsPerPage
- the number of MergeRequest instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<MergeRequest> getMergeRequestsStream(MergeRequestFilter filter) throws GitLabApiException
GitLab Endpoint: GET /merge_requests
filter
- a MergeRequestFilter instance with the filter settingsGitLabApiException
- if any exception occurspublic java.util.List<MergeRequest> getMergeRequests(java.lang.Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic java.util.List<MergeRequest> getMergeRequests(java.lang.Object projectIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancepage
- the page to getperPage
- the number of MergeRequest instances per pageGitLabApiException
- if any exception occurspublic Pager<MergeRequest> getMergeRequests(java.lang.Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceitemsPerPage
- the number of MergeRequest instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<MergeRequest> getMergeRequestsStream(java.lang.Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic java.util.List<MergeRequest> getMergeRequests(java.lang.Object projectIdOrPath, Constants.MergeRequestState state) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests?state=:state
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancestate
- the state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all).GitLabApiException
- if any exception occurspublic java.util.List<MergeRequest> getMergeRequests(java.lang.Object projectIdOrPath, Constants.MergeRequestState state, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancestate
- the state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all).page
- the page to getperPage
- the number of MergeRequest instances per pageGitLabApiException
- if any exception occurspublic Pager<MergeRequest> getMergeRequests(java.lang.Object projectIdOrPath, Constants.MergeRequestState state, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancestate
- the state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all).itemsPerPage
- the number of MergeRequest instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<MergeRequest> getMergeRequestsStream(java.lang.Object projectIdOrPath, Constants.MergeRequestState state) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests?state=:state
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancestate
- the state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all).GitLabApiException
- if any exception occurspublic MergeRequest getMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic MergeRequest getMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Boolean renderHtml, java.lang.Boolean includeDivergedCommitCount, java.lang.Boolean includeRebaseInProgress) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestrenderHtml
- if true response includes rendered HTML for title and description, can be nullincludeDivergedCommitCount
- if true response includes the commits behind the target branch, can be nullincludeRebaseInProgress
- if true response includes whether a rebase operation is in progress, can be nullGitLabApiException
- if any exception occurspublic java.util.Optional<MergeRequest> getOptionalMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid)
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestpublic java.util.Optional<MergeRequest> getOptionalMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Boolean renderHtml, java.lang.Boolean includeDivergedCommitCount, java.lang.Boolean includeRebaseInProgress)
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestrenderHtml
- if true response includes rendered HTML for title and description, can be nullincludeDivergedCommitCount
- if true response includes the commits behind the target branch, can be nullincludeRebaseInProgress
- if true response includes whether a rebase operation is in progress, can be nullpublic java.util.List<Commit> getCommits(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/commits
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- GitLabApiException if any exception occurs during executionpublic java.util.List<Commit> getCommits(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int page, int perPage) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/commits
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestpage
- the page to getperPage
- the number of commits per pageGitLabApiException
- GitLabApiException if any exception occurs during executionpublic Pager<Commit> getCommits(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/commits
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestitemsPerPage
- the number of Commit instances that will be fetched per pageGitLabApiException
- GitLabApiException if any exception occurs during executionpublic java.util.stream.Stream<Commit> getCommitsStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/commits
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- GitLabApiException if any exception occurs during execution@Deprecated public java.util.List<MergeRequestDiff> getMergeRequestDiffs(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
getDiffVersions(Object, Long)
insteadGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurs@Deprecated public Pager<MergeRequestDiff> getMergeRequestDiffs(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
getDiffVersions(Object, Long, int)
insteadGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestitemsPerPage
- the number of MergeRequest instances that will be fetched per pageGitLabApiException
- if any exception occurs@Deprecated public java.util.stream.Stream<MergeRequestDiff> getMergeRequestDiffsStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
getDiffVersionsStream(Object, Long)
insteadGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurs@Deprecated public MergeRequestDiff getMergeRequestDiff(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long versionId) throws GitLabApiException
getDiffVersion(Object, Long, Long)
insteadGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions/:version_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestversionId
- the ID of the merge request diff versionGitLabApiException
- if any exception occurs@Deprecated public java.util.Optional<MergeRequestDiff> getOptionalMergeRequestDiff(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long versionId)
getOptionalDiffVersion(Object, Long, Long)
insteadGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions/:version_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestversionId
- the ID of the merge request diff versionpublic java.util.List<MergeRequestVersion> getDiffVersions(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic Pager<MergeRequestVersion> getDiffVersions(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestitemsPerPage
- the number of MergeRequest instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<MergeRequestVersion> getDiffVersionsStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic MergeRequestDiff getDiffVersion(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long versionId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions/:version_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestversionId
- the ID of the merge request diff versionGitLabApiException
- if any exception occurspublic java.util.Optional<MergeRequestDiff> getOptionalDiffVersion(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long versionId)
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions/:version_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestversionId
- the ID of the merge request diff versionpublic java.util.List<Diff> getDiffs(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/diffs
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic Pager<Diff> getDiffs(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/diffs
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestitemsPerPage
- the number of Diff instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<Diff> getDiffsStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/diffs
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic MergeRequest createMergeRequest(java.lang.Object projectIdOrPath, MergeRequestParams params) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceparams
- a MergeRequestParams instance holding the info to create the merge requestGitLabApiException
- if any exception occurspublic MergeRequest createMergeRequest(java.lang.Object projectIdOrPath, java.lang.String sourceBranch, java.lang.String targetBranch, java.lang.String title, java.lang.String description, java.lang.Long assigneeId, java.lang.Long targetProjectId, java.lang.String[] labels, java.lang.Long milestoneId, java.lang.Boolean removeSourceBranch, java.lang.Boolean squash) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancesourceBranch
- 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, optionaltargetProjectId
- the ID of a target project, optionallabels
- labels for MR, optionalmilestoneId
- the ID of a milestone, optionalremoveSourceBranch
- Flag indicating if a merge request should remove the source branch when merging, optionalsquash
- Squash commits into a single commit when merging, optionalGitLabApiException
- if any exception occurspublic MergeRequest createMergeRequest(java.lang.Object projectIdOrPath, java.lang.String sourceBranch, java.lang.String targetBranch, java.lang.String title, java.lang.String description, java.lang.Long assigneeId, java.lang.Long targetProjectId, java.lang.String[] labels, java.lang.Long milestoneId, java.lang.Boolean removeSourceBranch) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancesourceBranch
- 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, optionaltargetProjectId
- the ID of a target project, optionallabels
- labels for MR, optionalmilestoneId
- the ID of a milestone, optionalremoveSourceBranch
- Flag indicating if a merge request should remove the source branch when merging, optionalGitLabApiException
- if any exception occurspublic MergeRequest createMergeRequest(java.lang.Object projectIdOrPath, java.lang.String sourceBranch, java.lang.String targetBranch, java.lang.String title, java.lang.String description, java.lang.Long assigneeId) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancesourceBranch
- 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
- if any exception occurspublic MergeRequest updateMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, MergeRequestParams params) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge request to updateparams
- a MergeRequestParams instance holding the info to update the merge requestGitLabApiException
- if any exception occurspublic MergeRequest updateMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.String targetBranch, java.lang.String title, java.lang.Long assigneeId, java.lang.String description, Constants.StateEvent stateEvent, java.lang.String labels, java.lang.Long milestoneId, java.lang.Boolean removeSourceBranch, java.lang.Boolean squash, java.lang.Boolean discussionLocked, java.lang.Boolean allowCollaboration) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge request to updatetargetBranch
- the target branch, optionaltitle
- the title for the merge requestassigneeId
- the Assignee user ID, optionaldescription
- the description of the merge request, optionalstateEvent
- new state for the merge request, optionallabels
- comma separated list of labels, optionalmilestoneId
- the ID of a milestone, optionalremoveSourceBranch
- Flag indicating if a merge request should remove the source
branch when merging, optionalsquash
- Squash commits into a single commit when merging, optionaldiscussionLocked
- Flag indicating if the merge request's discussion is locked, optionalallowCollaboration
- Allow commits from members who can merge to the target branch,
optionalGitLabApiException
- if any exception occurspublic void deleteMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic MergeRequest acceptMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, AcceptMergeRequestParams params) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/merge
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestparams
- the MergeRequest instance holding the parameters for accepting the merge requestGitLabApiException
- if any exception occurspublic MergeRequest acceptMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/merge
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic MergeRequest acceptMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.String mergeCommitMessage, java.lang.Boolean shouldRemoveSourceBranch, java.lang.Boolean mergeWhenPipelineSucceeds) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request. Additionally, mergeWhenPipelineSucceeds sets the merge_when_build_succeeds flag for GitLab API V3.
GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/merge
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestmergeCommitMessage
- custom merge commit message, optionalshouldRemoveSourceBranch
- if true removes the source branch, optionalmergeWhenPipelineSucceeds
- if true the MR is merged when the pipeline, optionalGitLabApiException
- if any exception occurspublic MergeRequest acceptMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.String mergeCommitMessage, java.lang.Boolean shouldRemoveSourceBranch, java.lang.Boolean mergeWhenPipelineSucceeds, java.lang.String sha) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request. Additionally, mergeWhenPipelineSucceeds sets the merge_when_build_succeeds flag for GitLab API V3.
GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/merge
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestmergeCommitMessage
- custom merge commit message, optionalshouldRemoveSourceBranch
- if true removes the source branch, optionalmergeWhenPipelineSucceeds
- if true the MR is merged when the pipeline, optionalsha
- if present, then this SHA must match the HEAD of the source branch, otherwise the merge will fail, optionalGitLabApiException
- if any exception occurspublic MergeRequest cancelMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.
GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/cancel_merge_when_pipeline_succeeds
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic MergeRequest getMergeRequestApprovals(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approvals
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic MergeRequest getApprovals(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approvals
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic ApprovalState getApprovalState(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approval_state
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic java.util.List<ApprovalRule> getApprovalRules(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approval_rules
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic Pager<ApprovalRule> getApprovalRules(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approval_rules
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestitemsPerPage
- the number of ApprovalRule instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<ApprovalRule> getApprovalRulesStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approval_rules
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic ApprovalRule createApprovalRule(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long projectRuleId, ApprovalRuleParams params) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/approval_rules
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestprojectRuleId
- the ID of a project-level approval ruleparams
- the ApprovalRuleParams instance holding the parameters for the approval ruleGitLabApiException
- if any exception occurspublic ApprovalRule updateApprovalRule(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long approvalRuleId, ApprovalRuleParams params) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/approval_rules/:approval_rule_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestapprovalRuleId
- the ID of the approval ruleparams
- the ApprovalRuleParams instance holding the parameters for the approval rule updateGitLabApiException
- if any exception occurspublic void deleteApprovalRule(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long approvalRuleId) throws GitLabApiException
GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid/approval_rules/:approval_rule_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestapprovalRuleId
- the ID of the approval ruleGitLabApiException
- if any exception occurspublic MergeRequest approveMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.String sha) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/approve
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestsha
- the HEAD of the merge request, optionalGitLabApiException
- if any exception occurspublic MergeRequest unapproveMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/unapprove
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurspublic MergeRequest getMergeRequestChanges(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/changes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the IID of the merge request to getGitLabApiException
- if any exception occurspublic java.util.List<Participant> getParticipants(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/participants
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the IID of the merge request to getGitLabApiException
- if any exception occurspublic java.util.List<Participant> getParticipants(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/participants
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the IID of the merge request to getpage
- the page to getperPage
- the number of projects per pageGitLabApiException
- if any exception occurspublic Pager<Participant> getParticipants(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/participants
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the IID of the merge request to getitemsPerPage
- the number of Participant instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<Participant> getParticipantsStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/participants
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the IID of the merge request to getGitLabApiException
- if any exception occurspublic java.util.List<Issue> getClosesIssues(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/closes_issues
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge request to get the closes issues forGitLabApiException
- if any exception occurspublic java.util.List<Issue> getClosesIssues(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/closes_issues
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge request to get the closes issues forpage
- the page to getperPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic Pager<Issue> getClosesIssues(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/closes_issues
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge request to get the closes issues foritemsPerPage
- the number of Issue instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<Issue> getClosesIssuesStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/closes_issues
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge request to get the closes issues forGitLabApiException
- if any exception occurspublic java.util.List<Issue> getApprovalStatus(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/closes_issues
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge request to get the closes issues forGitLabApiException
- if any exception occurspublic MergeRequest rebaseMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/rebase
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge request to rebaseGitLabApiException
- if any exception occurspublic MergeRequest getRebaseStatus(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge request being rebasedGitLabApiException
- if any exception occurspublic java.util.List<Pipeline> getMergeRequestPipelines(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/pipelines
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurs during executionpublic Pager<Pipeline> getMergeRequestPipelines(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/pipelines
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestitemsPerPage
- the number of Pipeline instances that will be fetched per pageGitLabApiException
- if any exception occurs during executionpublic java.util.stream.Stream<Pipeline> getMergeRequestPipelinesStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/pipelines
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurs during executionpublic Pipeline createMergeRequestPipeline(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
Create a new pipeline for a merge request. A pipeline created via this endpoint will not run a regular branch/tag pipeline, it requires .gitlab-ci.yml to be configured with only: [merge_requests] to create jobs.
The new pipeline can be: A detached merge request pipeline. A pipeline for merged results if the project setting is enabled.GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/pipelines
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the internal ID of the merge requestGitLabApiException
- if any exception occurs during execution