99)
1010
1111type ReleaseDeploymentList struct {
12- Count int `json:"count"`
12+ Count int `json:"count"`
1313 List []ReleaseDeployment `json:"value"`
1414}
1515
@@ -24,27 +24,27 @@ type ReleaseDeployment struct {
2424 } `json:"release"`
2525
2626 ReleaseDefinition struct {
27- Id int64
28- Name string
29- Path string
27+ Id int64
28+ Name string
29+ Path string
3030 } `json:"releaseDefinition"`
3131
3232 Artifacts []ReleaseArtifact
3333
3434 ReleaseEnvironment ReleaseDeploymentEnvironment
3535
36- PreDeployApprovals []ReleaseEnvironmentApproval
36+ PreDeployApprovals []ReleaseEnvironmentApproval
3737 PostDeployApprovals []ReleaseEnvironmentApproval
3838
39- Reason string
39+ Reason string
4040 DeploymentStatus string
4141 OperationStatus string
4242
4343 Attempt int64
4444
4545 // sometimes dates are not valid here
46- QueuedOn string `json:"queuedOn,omitempty"`
47- StartedOn string `json:"startedOn,omitempty"`
46+ QueuedOn string `json:"queuedOn,omitempty"`
47+ StartedOn string `json:"startedOn,omitempty"`
4848 CompletedOn string `json:"completedOn,omitempty"`
4949
5050 RequestedBy IdentifyRef
@@ -54,12 +54,11 @@ type ReleaseDeployment struct {
5454}
5555
5656type ReleaseDeploymentEnvironment struct {
57- Id int64
58- Name string
57+ Id int64
58+ Name string
5959}
6060
61-
62- func (d * ReleaseDeployment ) ApprovedBy () (string ) {
61+ func (d * ReleaseDeployment ) ApprovedBy () string {
6362 var approverList []string
6463 for _ , approval := range d .PreDeployApprovals {
6564 if ! approval .IsAutomated {
@@ -69,18 +68,18 @@ func (d *ReleaseDeployment) ApprovedBy() (string) {
6968 }
7069 }
7170
72- return strings .Join (approverList [:],"," )
71+ return strings .Join (approverList [:], "," )
7372}
7473
75- func (d * ReleaseDeployment ) QueuedOnTime () ( * time.Time ) {
74+ func (d * ReleaseDeployment ) QueuedOnTime () * time.Time {
7675 return parseTime (d .QueuedOn )
7776}
7877
79- func (d * ReleaseDeployment ) StartedOnTime () ( * time.Time ) {
78+ func (d * ReleaseDeployment ) StartedOnTime () * time.Time {
8079 return parseTime (d .StartedOn )
8180}
8281
83- func (d * ReleaseDeployment ) CompletedOnTime () ( * time.Time ) {
82+ func (d * ReleaseDeployment ) CompletedOnTime () * time.Time {
8483 return parseTime (d .CompletedOn )
8584}
8685
0 commit comments