From ffd4a2ea3c9ea9b67ffcd72df7f9fda855d2fa02 Mon Sep 17 00:00:00 2001 From: Jui Desai Date: Wed, 20 May 2026 23:33:13 -0500 Subject: [PATCH 1/2] fix return Thread ID in get_review_comments response --- pkg/github/minimal_types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/github/minimal_types.go b/pkg/github/minimal_types.go index a33b401d5..6086c95b2 100644 --- a/pkg/github/minimal_types.go +++ b/pkg/github/minimal_types.go @@ -1,6 +1,7 @@ package github import ( + "fmt" "strconv" "time" @@ -858,6 +859,7 @@ type MinimalReviewComment struct { // MinimalReviewThread is the trimmed output type for PR review thread objects. type MinimalReviewThread struct { + ID string IsResolved bool `json:"is_resolved"` IsOutdated bool `json:"is_outdated"` IsCollapsed bool `json:"is_collapsed"` @@ -994,6 +996,7 @@ func convertToMinimalReviewThread(thread reviewThreadNode) MinimalReviewThread { } return MinimalReviewThread{ + ID: fmt.Sprintf("%v", thread.ID) IsResolved: bool(thread.IsResolved), IsOutdated: bool(thread.IsOutdated), IsCollapsed: bool(thread.IsCollapsed), From 9ebbf1d1c94289e06145c7575a93fdaf4a4d53c2 Mon Sep 17 00:00:00 2001 From: Sam Morrow Date: Thu, 21 May 2026 14:11:40 +0200 Subject: [PATCH 2/2] Fix syntax error in convertToMinimalReviewThread Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- pkg/github/minimal_types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/github/minimal_types.go b/pkg/github/minimal_types.go index 6086c95b2..bad5196a9 100644 --- a/pkg/github/minimal_types.go +++ b/pkg/github/minimal_types.go @@ -1,7 +1,7 @@ package github import ( - "fmt" + "fmt" "strconv" "time" @@ -859,7 +859,7 @@ type MinimalReviewComment struct { // MinimalReviewThread is the trimmed output type for PR review thread objects. type MinimalReviewThread struct { - ID string + ID string IsResolved bool `json:"is_resolved"` IsOutdated bool `json:"is_outdated"` IsCollapsed bool `json:"is_collapsed"` @@ -996,7 +996,7 @@ func convertToMinimalReviewThread(thread reviewThreadNode) MinimalReviewThread { } return MinimalReviewThread{ - ID: fmt.Sprintf("%v", thread.ID) + ID: fmt.Sprintf("%v", thread.ID), IsResolved: bool(thread.IsResolved), IsOutdated: bool(thread.IsOutdated), IsCollapsed: bool(thread.IsCollapsed),