Interface GitHubReviewComment

Represents a review comment on a specific line of a pull request diff.

interface GitHubReviewComment {
    body: string;
    commit_id: string;
    created_at: string;
    diff_hunk: string;
    html_url: string;
    id: number;
    in_reply_to_id?: number;
    line?: number;
    path: string;
    position: null | number;
    pull_request_review_id: number;
    side?: "LEFT" | "RIGHT";
    updated_at: string;
    user: GitHubUser;
}

Properties

body: string

Comment body text

commit_id: string

The commit SHA this comment was placed on

created_at: string

ISO 8601 timestamp of creation

diff_hunk: string

The diff hunk this comment refers to

html_url: string

URL to the comment on GitHub

id: number

Unique numeric comment ID

in_reply_to_id?: number

ID of the parent comment if this is a reply

line?: number

Line number in the file

path: string

Path to the file this comment is on

position: null | number

Line position in the diff

pull_request_review_id: number

ID of the review this comment belongs to

side?: "LEFT" | "RIGHT"

Side of the diff (LEFT for old file, RIGHT for new file)

updated_at: string

ISO 8601 timestamp of last update

User who wrote the comment