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
Nested Classes -
Field Summary
Fields -
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 whosetitleordescriptioncontains 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 theparticipantsassociated 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 specifieddraftstatus.booleanboolean
-
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.MERGEDorPullRequestState.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 whosetitleordescriptioncontains the provided text.- Returns:
- filter text to match against the pull request's title or description, or
nullfor 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 noPullRequestOrderis supplied, then results will be ordered byNEWEST.- Returns:
- required orders
- Since:
- 8.17
-
getParticipants
When set, limits the pull requests to search for by theparticipantsassociated 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 specifieddraftstatus.- Returns:
trueif 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:
trueto fetch the description of the pull request(s) returned by the search- Since:
- 7.10
-
isWithProperties
public boolean isWithProperties()- Returns:
trueto fetch the pull requests' properties.
-