Skip to content

Commit 805ad75

Browse files
juidesaiJui DesaiSamMorrowDrumsCopilot
authored
Fix return Thread node ID in get_review_comments response (#2515)
* fix return Thread ID in get_review_comments response * Fix syntax error in convertToMinimalReviewThread Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Jui Desai <juidesai@MacBook-Pro.local> Co-authored-by: Sam Morrow <info@sam-morrow.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6b4ca78 commit 805ad75

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/github/minimal_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package github
22

33
import (
4+
"fmt"
45
"strconv"
56
"time"
67

@@ -858,6 +859,7 @@ type MinimalReviewComment struct {
858859

859860
// MinimalReviewThread is the trimmed output type for PR review thread objects.
860861
type MinimalReviewThread struct {
862+
ID string
861863
IsResolved bool `json:"is_resolved"`
862864
IsOutdated bool `json:"is_outdated"`
863865
IsCollapsed bool `json:"is_collapsed"`
@@ -994,6 +996,7 @@ func convertToMinimalReviewThread(thread reviewThreadNode) MinimalReviewThread {
994996
}
995997

996998
return MinimalReviewThread{
999+
ID: fmt.Sprintf("%v", thread.ID),
9971000
IsResolved: bool(thread.IsResolved),
9981001
IsOutdated: bool(thread.IsOutdated),
9991002
IsCollapsed: bool(thread.IsCollapsed),

0 commit comments

Comments
 (0)