Package com.atlassian.bitbucket.pull
Class PullRequestSearchRequest
java.lang.Object
com.atlassian.bitbucket.pull.PullRequestSearchRequest
Request for searching for pull requests. The purpose and behaviour of each field is described on its accessor.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionWhen set, limits the pull requests to search for pull requests in the closed state (i.e.When set, limits the pull requests to search for to those whosetitle
ordescription
contains the provided text.When set, limits the pull requests to search for by the branches the changes are coming from.When set, limits the pull requests to search for by the repository the changes are coming from.A list oforder
's to return the search results in.When set, limits the pull requests to search for by theparticipants
associated with it.getState()
Restricts the search to a specifiedpull request state
.When set, limits the pull requests to search for by the branches the changes are going to.When set, limits the pull requests to search for by the repository the changes are going to.When set, limits the pull requests to search for pull requests where the updated timestamp is more recent than the returned date.isDraft()
When set, limits the search to pull requests that match the specifieddraft
status.boolean
boolean
-
Field Details
-
MAXIMUM_BRANCHES_TO_SEARCH
public static final int MAXIMUM_BRANCHES_TO_SEARCH- See Also:
-
-
Method Details
-
getClosedSince
When set, limits the pull requests to search for pull requests in the closed state (i.e.PullRequestState.MERGED
orPullRequestState.DECLINED
) where the closed timestamp is more recent than the returned date.- Returns:
- the closed since date
- Since:
- 4.10
-
getFilterText
When set, limits the pull requests to search for to those whosetitle
ordescription
contains the provided text.- Returns:
- filter text to match against the pull request's title or description, or
null
for no filtering - Since:
- 7.2
-
getFromRefIds
When set, limits the pull requests to search for by the branches the changes are coming from.- Returns:
- the set branch ids
-
getFromRepositoryId
When set, limits the pull requests to search for by the repository the changes are coming from.- Returns:
- the set from repository ID
-
getOrders
A list oforder
's to return the search results in. If noPullRequestOrder
is supplied, then results will be ordered byNEWEST
.- Returns:
- required orders
- Since:
- 8.17
-
getParticipants
When set, limits the pull requests to search for by theparticipants
associated with it.- Returns:
- The required pull request participants.
-
getState
Restricts the search to a specifiedpull request state
.- Returns:
- the state to restrict to
-
getToRefIds
When set, limits the pull requests to search for by the branches the changes are going to.- Returns:
- the set branch ids
-
getToRepositoryId
When set, limits the pull requests to search for by the repository the changes are going to.- Returns:
- the set to repository id
-
getUpdatedSince
When set, limits the pull requests to search for pull requests where the updated timestamp is more recent than the returned date.- Returns:
- the updated since date
- Since:
- 7.12
-
isDraft
When set, limits the search to pull requests that match the specifieddraft
status.- Returns:
true
if only draft pull requests will be returned.false
, if only non-draft pull requests will be returned. Ifnull
, then this filter will be ignored.- Since:
- 8.18
-
isWithDescription
public boolean isWithDescription()- Returns:
true
to fetch the description of the pull request(s) returned by the search- Since:
- 7.10
-
isWithProperties
public boolean isWithProperties()- Returns:
true
to fetch the pull requests' properties.
-