Skip to content

Commit

Permalink
[SD-323] Updated struct name.
Browse files Browse the repository at this point in the history
  • Loading branch information
GROwen committed Dec 2, 2024
1 parent 2681119 commit 5ed15ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/deployment/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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(),
Expand All @@ -59,7 +59,7 @@ func DeploymentMetadata(c *cli.Context) error {
}

md := Metadata{
Deployment: item,
DeploymentMetadata: item,
}

json, _ := json.Marshal(md)
Expand Down

0 comments on commit 5ed15ef

Please sign in to comment.