From 9583ceb909d735bd3d413d553b1a4e6842e329f8 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 5 Jun 2024 17:17:59 -0600 Subject: Add yaml tags to issue struct --- pkg/gitlab/issue.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'pkg') diff --git a/pkg/gitlab/issue.go b/pkg/gitlab/issue.go index 8251915..2610937 100644 --- a/pkg/gitlab/issue.go +++ b/pkg/gitlab/issue.go @@ -15,17 +15,17 @@ const ( ) type Issue struct { - ID int `json:"id"` - IID int `json:"iid"` - ProjectID int `json:"project_id"` - Title string `json:"title"` - Description string `json:"description"` - State IssueState `json:"state"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` - ClosedAt time.Time `json:"closed_at"` - ClosedBy User `json:"closed_by"` - Labels []string `json:"labels"` + ID int `json:"id" yaml:"id"` + IID int `json:"iid" yaml:"iid"` + ProjectID int `json:"project_id" yaml:"project_id"` + Title string `json:"title" yaml:"title"` + Description string `json:"description" yaml:"description"` + State IssueState `json:"state" yaml:"state"` + CreatedAt time.Time `json:"created_at" yaml:"created_at"` + UpdatedAt time.Time `json:"updated_at" yaml:"updated_at"` + ClosedAt time.Time `json:"closed_at" yaml:"closed_at"` + ClosedBy User `json:"closed_by" yaml:"closed_by"` + Labels []string `json:"labels" yaml:"labels"` } func (issue *Issue) ToParam() string { -- cgit v1.2.3