From b1fdb363ffc8f3a132979c73fcc6de149b8783f1 Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 18 Sep 2025 05:28:48 +0200 Subject: [PATCH] feat(gist): add `RawURL` and `Truncated` fields to `GistFile` * Added `RawURL` to store the raw URL of the gist file. * Added `Truncated` to indicate if the content is truncated. --- pkg/cmd/gist/shared/shared.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/gist/shared/shared.go b/pkg/cmd/gist/shared/shared.go index 99a5524ee..3f849f71d 100644 --- a/pkg/cmd/gist/shared/shared.go +++ b/pkg/cmd/gist/shared/shared.go @@ -19,10 +19,12 @@ import ( ) type GistFile struct { - Filename string `json:"filename,omitempty"` - Type string `json:"type,omitempty"` - Language string `json:"language,omitempty"` - Content string `json:"content"` + Filename string `json:"filename,omitempty"` + Type string `json:"type,omitempty"` + Language string `json:"language,omitempty"` + Content string `json:"content"` + RawURL string `json:"raw_url,omitempty"` + Truncated bool `json:"truncated,omitempty"` } type GistOwner struct {