From 94dff4de04b06bad72a51fde8fbe736df7069a4b Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Sun, 26 May 2024 00:05:04 +0100 Subject: [PATCH] Add `createdAt` field to `Variable` type Signed-off-by: Babak K. Shandiz --- pkg/cmd/variable/shared/shared.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/variable/shared/shared.go b/pkg/cmd/variable/shared/shared.go index d9489f219..c681242bc 100644 --- a/pkg/cmd/variable/shared/shared.go +++ b/pkg/cmd/variable/shared/shared.go @@ -29,6 +29,7 @@ type Variable struct { Name string `json:"name"` Value string `json:"value"` UpdatedAt time.Time `json:"updated_at"` + CreatedAt time.Time `json:"created_at"` Visibility Visibility `json:"visibility"` SelectedReposURL string `json:"selected_repositories_url"` NumSelectedRepos int `json:"num_selected_repos"` @@ -39,6 +40,7 @@ var VariableJSONFields = []string{ "value", "visibility", "updatedAt", + "createdAt", "numSelectedRepos", "selectedReposURL", }