Skip to content

Commit 69f4a83

Browse files
change gitops
1 parent d48761f commit 69f4a83

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

pkg/codefresh/gitops.go

+11-5
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,19 @@ type (
6969
Current int64 `json:"current"`
7070
Desired int64 `json:"desired"`
7171
}
72-
User struct {
73-
Name string `json:"name"`
74-
Avatar string `json:"avatar"`
75-
}
72+
7673
Annotation struct {
7774
Key string `json:"key"`
7875
Value string `json:"value"`
7976
}
8077

78+
GitopsUser struct {
79+
Name string `json:"name"`
80+
Avatar string `json:"avatar"`
81+
}
82+
8183
Gitops struct {
82-
Comitters []User `json:"comitters"`
84+
Comitters []GitopsUser `json:"comitters"`
8385
Prs []Annotation `json:"prs"`
8486
Issues []Annotation `json:"issues"`
8587
}
@@ -99,6 +101,9 @@ type (
99101
SyncPolicy SyncPolicy `json:"syncPolicy"`
100102
Date string `json:"date"`
101103
ParentApp string `json:"parentApp"`
104+
Namespace string `json:"namespace"`
105+
Server string `json:"server"`
106+
Context *string `json:"context"`
102107
}
103108

104109
EnvironmentActivity struct {
@@ -114,6 +119,7 @@ type (
114119
HistoryId int64 `json:"historyId"`
115120
Revision string `json:"revision, omitempty"`
116121
Resources interface{} `json:"resources"`
122+
Context *string `json:"context"`
117123
}
118124
)
119125

0 commit comments

Comments
 (0)