Represents a single file change within a Bitbucket Data Center pull request.

interface BitbucketChange {
    contentId?: string;
    executable: boolean;
    fromContentId?: string;
    links: Record<string, unknown>;
    nodeType: ChangeNodeType;
    path: BitbucketChangePath;
    percentUnchanged: number;
    srcExecutable: boolean;
    srcPath?: BitbucketChangePath;
    type: ChangeType;
}

Properties

contentId?: string

Content ID (SHA) of the file in the destination ref

executable: boolean

Whether the file has the executable bit set in the destination ref

fromContentId?: string

Content ID (SHA) of the file in the source ref

links: Record<string, unknown>
nodeType: ChangeNodeType

Path of the changed file in the destination ref

percentUnchanged: number
srcExecutable: boolean

Whether the file had the executable bit set in the source ref

Original path before a rename or move (only present for RENAME and MOVE)