diff options
| author | mo khan <mo@mokhan.ca> | 2024-06-05 17:17:59 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-06-05 17:17:59 -0600 |
| commit | 9583ceb909d735bd3d413d553b1a4e6842e329f8 (patch) | |
| tree | 133284d135202ab0269f38f2657230564a91ca93 | |
| parent | 5779ea0f400b7e8df223fe320ab07727227a2f3c (diff) | |
Add yaml tags to issue struct
| -rw-r--r-- | pkg/gitlab/issue.go | 22 |
1 files changed, 11 insertions, 11 deletions
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 { |
