Comment thread context contains details about what diffs were being viewed at the time of thread creation and whether or not the thread has been tracked from that original diff.

interface GitPullRequestCommentThreadContext {
    changeTrackingId?: number;
    iterationContext?: CommentIterationContext;
    trackingCriteria?: CommentTrackingCriteria;
}

Properties

changeTrackingId?: number

Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests.

iterationContext?: CommentIterationContext

The iteration context being viewed when the thread was created.

trackingCriteria?: CommentTrackingCriteria

The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria.