From 17154bcb21dc56ba1615ce74d5e61cd69cca92e9 Mon Sep 17 00:00:00 2001 From: Dan Potepa Date: Fri, 29 Nov 2024 10:53:23 +0000 Subject: [PATCH] fix: json format keys --- main.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index d8cbc61..479c336 100644 --- a/main.go +++ b/main.go @@ -41,14 +41,14 @@ type config struct { } type PullRequest struct { - CreatedAt time.Time - Title string - Author string - Head string - Base string - Link string - Draft bool - Mergeable bool + CreatedAt time.Time `json:"created_at,omitempty"` + Title string `json:"title,omitempty"` + Author string `json:"author,omitempty"` + Head string `json:"head,omitempty"` + Base string `json:"base,omitempty"` + Link string `json:"link,omitempty"` + Draft bool `json:"draft,omitempty"` + Mergeable bool `json:"mergeable,omitempty"` } func init() {