Skip to content

Commit f55627e

Browse files
committed
fix: restore thread id in get_review_comments response
1 parent b1575ed commit f55627e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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
"time"
56

67
"github.com/google/go-github/v82/github"
@@ -717,6 +718,7 @@ type MinimalReviewComment struct {
717718

718719
// MinimalReviewThread is the trimmed output type for PR review thread objects.
719720
type MinimalReviewThread struct {
721+
ID string `json:"id"`
720722
IsResolved bool `json:"is_resolved"`
721723
IsOutdated bool `json:"is_outdated"`
722724
IsCollapsed bool `json:"is_collapsed"`
@@ -853,6 +855,7 @@ func convertToMinimalReviewThread(thread reviewThreadNode) MinimalReviewThread {
853855
}
854856

855857
return MinimalReviewThread{
858+
ID: fmt.Sprintf("%v", thread.ID),
856859
IsResolved: bool(thread.IsResolved),
857860
IsOutdated: bool(thread.IsOutdated),
858861
IsCollapsed: bool(thread.IsCollapsed),

0 commit comments

Comments
 (0)