Add CapabilitiesJson to DeclareRequest and FetchTaskRequest
All checks were successful
CI / build (push) Successful in 2s
Release / release (push) Successful in 3s

This commit is contained in:
David H Friedel Jr 2026-01-11 06:55:49 +00:00
parent c5e4258abc
commit df1eee24dc
3 changed files with 20 additions and 8 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module code.gitea.io/actions-proto-go
go 1.19
go 1.21
require (
connectrpc.com/connect v1.15.0

3
go.sum
View File

@ -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=

View File

@ -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" +