From 5ed15efe7b7f430bf60475b726dfd2af035b79db Mon Sep 17 00:00:00 2001 From: Guy Owen Date: Mon, 2 Dec 2024 14:59:06 +1100 Subject: [PATCH] [SD-323] Updated struct name. --- cmd/deployment/metadata.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/deployment/metadata.go b/cmd/deployment/metadata.go index d48973b..a8a3b86 100644 --- a/cmd/deployment/metadata.go +++ b/cmd/deployment/metadata.go @@ -11,10 +11,10 @@ import ( ) type Metadata struct { - Deployment Item `json:"deployment"` + DeploymentMetadata Deployment `json:"deployment"` } -type Item struct { +type Deployment struct { Sha string `json:"sha"` AuthorName string `json:"authorName"` When string `json:"when"` @@ -50,7 +50,7 @@ func DeploymentMetadata(c *cli.Context) error { msgFirstLn := strings.TrimLeft(strings.Split(msg.String(), "\n")[4], " ") - item := Item{ + item := Deployment{ Sha: ref.Hash().String(), AuthorName: msg.Author.Name, When: msg.Author.When.String(), @@ -59,7 +59,7 @@ func DeploymentMetadata(c *cli.Context) error { } md := Metadata{ - Deployment: item, + DeploymentMetadata: item, } json, _ := json.Marshal(md)