From df1eee24dcdcba337fb11f2d229226e842c2279d Mon Sep 17 00:00:00 2001 From: GitCaddy Admin Date: Sun, 11 Jan 2026 06:55:49 +0000 Subject: [PATCH] Add CapabilitiesJson to DeclareRequest and FetchTaskRequest --- go.mod | 2 +- go.sum | 3 +++ runner/v1/messages.pb.go | 23 ++++++++++++++++------- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 50e43ab..1962dcb 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module code.gitea.io/actions-proto-go -go 1.19 +go 1.21 require ( connectrpc.com/connect v1.15.0 diff --git a/go.sum b/go.sum index fb297f9..e51c5ee 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,10 @@ connectrpc.com/connect v1.15.0 h1:lFdeCbZrVVDydAqwr4xGV2y+ULn+0Z73s5JBj2LikWo= connectrpc.com/connect v1.15.0/go.mod h1:bQmjpDY8xItMnttnurVgOkHUBMRT9cpsNi2O4AjKhmA= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= diff --git a/runner/v1/messages.pb.go b/runner/v1/messages.pb.go index a4cee5b..ebe7534 100644 --- a/runner/v1/messages.pb.go +++ b/runner/v1/messages.pb.go @@ -273,11 +273,12 @@ func (x *RegisterResponse) GetRunner() *Runner { } type DeclareRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"` + CapabilitiesJson string `protobuf:"bytes,3,opt,name=capabilities_json,json=capabilitiesJson,proto3" json:"capabilities_json,omitempty"` // JSON-encoded runner capabilities + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeclareRequest) Reset() { @@ -324,6 +325,13 @@ func (x *DeclareRequest) GetLabels() []string { return nil } +func (x *DeclareRequest) GetCapabilitiesJson() string { + if x != nil { + return x.CapabilitiesJson + } + return "" +} + type DeclareResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Runner *Runner `protobuf:"bytes,1,opt,name=runner,proto3" json:"runner,omitempty"` @@ -1186,10 +1194,11 @@ const file_runner_v1_messages_proto_rawDesc = "" + "\x06labels\x18\x06 \x03(\tR\x06labels\x12\x1c\n" + "\tephemeral\x18\a \x01(\bR\tephemeral\"=\n" + "\x10RegisterResponse\x12)\n" + - "\x06runner\x18\x01 \x01(\v2\x11.runner.v1.RunnerR\x06runner\"B\n" + + "\x06runner\x18\x01 \x01(\v2\x11.runner.v1.RunnerR\x06runner\"o\n" + "\x0eDeclareRequest\x12\x18\n" + "\aversion\x18\x01 \x01(\tR\aversion\x12\x16\n" + - "\x06labels\x18\x02 \x03(\tR\x06labels\"<\n" + + "\x06labels\x18\x02 \x03(\tR\x06labels\x12+\n" + + "\x11capabilities_json\x18\x03 \x01(\tR\x10capabilitiesJson\"<\n" + "\x0fDeclareResponse\x12)\n" + "\x06runner\x18\x01 \x01(\v2\x11.runner.v1.RunnerR\x06runner\"d\n" + "\x10FetchTaskRequest\x12#\n" +