Skip to content

Commit 77695c7

Browse files
committed
add prerelease and requested_teams to configs
1 parent 70deafb commit 77695c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/response/optimize.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const maxFlattenDepth = 2
2222
var preservedFields = map[string]bool{
2323
"html_url": true,
2424
"draft": true,
25+
"prerelease": true,
2526
}
2627

2728
// collectionFieldExtractors controls how array fields are handled instead of being summarized as "[N items]".
@@ -33,6 +34,7 @@ var preservedFields = map[string]bool{
3334
var collectionFieldExtractors = map[string][]string{
3435
"labels": {"name"},
3536
"requested_reviewers": {"login"},
37+
"requested_teams": {"name"},
3638
}
3739

3840
// MarshalItems is the single entry point for response optimization.

0 commit comments

Comments
 (0)