1 // Copyright 2022 The go-github AUTHORS. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 package github 7 8 // PullRequestThread represents a thread of comments on a pull request. 9 type PullRequestThread struct { 10 ID *int64 `json:"id,omitempty"` 11 NodeID *string `json:"node_id,omitempty"` 12 Comments []*PullRequestComment `json:"comments,omitempty"` 13 } 14 15 func (p PullRequestThread) String() string { 16 return Stringify(p) 17 } 18