Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/github/minimal_types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package github

import (
"fmt"
"time"

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

// MinimalReviewThread is the trimmed output type for PR review thread objects.
type MinimalReviewThread struct {
ID string `json:"id"`
IsResolved bool `json:"is_resolved"`
IsOutdated bool `json:"is_outdated"`
IsCollapsed bool `json:"is_collapsed"`
Expand Down Expand Up @@ -853,6 +855,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),
Expand Down