Bitbucket Data Center API Client
    Preparing search index...

    Interface AddPullRequestCommentData

    Payload for POST /rest/api/latest/projects/{key}/repos/{slug}/pull-requests/{id}/comments.

    interface AddPullRequestCommentData {
        anchor?: {
            diffType?: "COMMIT" | "EFFECTIVE" | "RANGE";
            fileType?: "FROM" | "TO";
            fromHash?: string;
            line?: number;
            lineType?: "CONTEXT" | "ADDED" | "REMOVED";
            path?: string;
            srcPath?: string;
            toHash?: string;
        };
        parent?: { id: number };
        text: string;
    }
    Index

    Properties

    Properties

    anchor?: {
        diffType?: "COMMIT" | "EFFECTIVE" | "RANGE";
        fileType?: "FROM" | "TO";
        fromHash?: string;
        line?: number;
        lineType?: "CONTEXT" | "ADDED" | "REMOVED";
        path?: string;
        srcPath?: string;
        toHash?: string;
    }

    Anchor the comment to a specific file/line of the pull request diff.

    parent?: { id: number }

    Parent comment id for reply threads.

    text: string