Represents a pull request object. These are retrieved from Source Providers.

interface PullRequest {
    _links?: any;
    author?: IdentityRef;
    currentState?: string;
    description?: string;
    draft?: boolean;
    id?: string;
    providerName?: string;
    sourceBranchRef?: string;
    sourceRepositoryOwner?: string;
    targetBranchRef?: string;
    targetRepositoryOwner?: string;
    title?: string;
}

Properties

_links?: any

The links to other objects related to this object.

author?: IdentityRef

Author of the pull request.

currentState?: string

Current state of the pull request, e.g. open, merged, closed, conflicts, etc.

description?: string

Description for the pull request.

draft?: boolean

Returns if pull request is draft

id?: string

Unique identifier for the pull request

providerName?: string

The name of the provider this pull request is associated with.

sourceBranchRef?: string

Source branch ref of this pull request

sourceRepositoryOwner?: string

Owner of the source repository of this pull request

targetBranchRef?: string

Target branch ref of this pull request

targetRepositoryOwner?: string

Owner of the target repository of this pull request

title?: string

Title of the pull request.