Pull requests can be searched for matching this criteria.

interface GitPullRequestSearchCriteria {
    creatorId?: string;
    includeLinks?: boolean;
    maxTime?: Date;
    minTime?: Date;
    queryTimeRangeType?: PullRequestTimeRangeType;
    repositoryId?: string;
    reviewerId?: string;
    sourceRefName?: string;
    sourceRepositoryId?: string;
    status?: PullRequestStatus;
    targetRefName?: string;
}

Properties

creatorId?: string

If set, search for pull requests that were created by this identity.

includeLinks?: boolean

Whether to include the _links field on the shallow references

maxTime?: Date

If specified, filters pull requests that created/closed before this date based on the queryTimeRangeType specified.

minTime?: Date

If specified, filters pull requests that created/closed after this date based on the queryTimeRangeType specified.

queryTimeRangeType?: PullRequestTimeRangeType

The type of time range which should be used for minTime and maxTime. Defaults to Created if unset.

repositoryId?: string

If set, search for pull requests whose target branch is in this repository.

reviewerId?: string

If set, search for pull requests that have this identity as a reviewer.

sourceRefName?: string

If set, search for pull requests from this branch.

sourceRepositoryId?: string

If set, search for pull requests whose source branch is in this repository.

If set, search for pull requests that are in this state. Defaults to Active if unset.

targetRefName?: string

If set, search for pull requests into this branch.