public class PullRequestSearchRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PullRequestSearchRequest.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_BRANCHES_TO_SEARCH |
Modifier and Type | Method and Description |
---|---|
Date |
getClosedSince()
When set, limits the pull requests to search for pull requests in the closed state (i.e.
|
String |
getFilterText()
When set, limits the pull requests to search for to those whose
title or
description contains the provided text. |
Collection<String> |
getFromRefIds()
When set, limits the pull requests to search for by the branches the changes are coming from.
|
Integer |
getFromRepositoryId()
When set, limits the pull requests to search for by the repository the changes are coming from.
|
PullRequestOrder |
getOrder()
The
order to return the search results in. |
Collection<PullRequestParticipantRequest> |
getParticipants()
When set, limits the pull requests to search for by the
participants
associated with it. |
PullRequestState |
getState()
Restricts the search to a specified
pull request state . |
Collection<String> |
getToRefIds()
When set, limits the pull requests to search for by the branches the changes are going to.
|
Integer |
getToRepositoryId()
When set, limits the pull requests to search for by the repository the changes are going to.
|
boolean |
isWithProperties() |
public static final int MAXIMUM_BRANCHES_TO_SEARCH
@Nullable public Date getClosedSince()
PullRequestState.MERGED
or PullRequestState.DECLINED
) where the closed timestamp is
more recent than the returned date.@Nullable public String getFilterText()
title
or
description
contains the provided text.null
for no filtering@Nonnull public Collection<String> getFromRefIds()
@Nullable public Integer getFromRepositoryId()
@Nullable public PullRequestOrder getOrder()
@Nonnull public Collection<PullRequestParticipantRequest> getParticipants()
participants
associated with it.@Nullable public PullRequestState getState()
pull request state
.@Nonnull public Collection<String> getToRefIds()
@Nullable public Integer getToRepositoryId()
public boolean isWithProperties()
true
to fetch the pull requests' properties.Copyright © 2020 Atlassian. All rights reserved.