Skip to content

Commit ffd4a2e

Browse files
Jui DesaiJui Desai
authored andcommitted
fix return Thread ID in get_review_comments response
1 parent 6b4ca78 commit ffd4a2e

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)