Skip to content

Commit d4b52fa

Browse files
committed
make external gitinfo match internal
1 parent 072d197 commit d4b52fa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build/v1/types.go

+11
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,17 @@ type GenericWebHookEvent struct {
10721072
type GitInfo struct {
10731073
GitBuildSource `json:",inline" protobuf:"bytes,1,opt,name=gitBuildSource"`
10741074
GitSourceRevision `json:",inline" protobuf:"bytes,2,opt,name=gitSourceRevision"`
1075+
1076+
// Refs is a list of GitRefs for the provided repo - generally sent
1077+
// when used from a post-receive hook. This field is optional and is
1078+
// used when sending multiple refs
1079+
Refs []GitRefInfo `json:"refs" protobuf:"bytes,3,rep,name=refs"`
1080+
}
1081+
1082+
// GitRefInfo is a single ref
1083+
type GitRefInfo struct {
1084+
GitBuildSource `json:",inline" protobuf:"bytes,1,opt,name=gitBuildSource"`
1085+
GitSourceRevision `json:",inline" protobuf:"bytes,2,opt,name=gitSourceRevision"`
10751086
}
10761087

10771088
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

0 commit comments

Comments
 (0)