Represents a comment which is one of potentially many in a comment thread.

interface Comment {
    _links?: any;
    author?: IdentityRef;
    commentType?: CommentType;
    content?: string;
    id?: number;
    isDeleted?: boolean;
    lastContentUpdatedDate?: Date;
    lastUpdatedDate?: Date;
    parentCommentId?: number;
    publishedDate?: Date;
    usersLiked?: IdentityRef[];
}

Properties

_links?: any

Links to other related objects.

author?: IdentityRef

The author of the comment.

commentType?: CommentType

The comment type at the time of creation.

content?: string

The comment content.

id?: number

The comment ID. IDs start at 1 and are unique to a pull request.

isDeleted?: boolean

Whether or not this comment was soft-deleted.

lastContentUpdatedDate?: Date

The date the comment's content was last updated.

lastUpdatedDate?: Date

The date the comment was last updated.

parentCommentId?: number

The ID of the parent comment. This is used for replies.

publishedDate?: Date

The date the comment was first published.

usersLiked?: IdentityRef[]

A list of the users who have liked this comment.