Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthik Nayak <knayak@gitlab.com>2022-08-17 18:36:21 +0300
committerKarthik Nayak <knayak@gitlab.com>2022-08-25 12:36:14 +0300
commit721c30b2549fea5c11bd91cdcf3bfd678ef02dc2 (patch)
treec16b4d1b11ff6e0b5ccc7766169042fc287619eb /ruby/proto
parentb702ffba9655f8d881763c948f06c9e466e958e0 (diff)
proto: Add UserCreateBranchError
Add a new message type `UserCreateBranchError`, which will be used to provide structured errors for the `UserCreateBranch` RPC. This will be released behind a feature flag. Currently this structure only holds a single data type within it, i.e. `CustomHookError`. Potentially can be extended in the future. Run `make proto` to generate the related proto files from this. Signed-off-by: Karthik Nayak <knayak@gitlab.com>
Diffstat (limited to 'ruby/proto')
-rw-r--r--ruby/proto/gitaly/operations_pb.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ruby/proto/gitaly/operations_pb.rb b/ruby/proto/gitaly/operations_pb.rb
index e29ad9932..99e650397 100644
--- a/ruby/proto/gitaly/operations_pb.rb
+++ b/ruby/proto/gitaly/operations_pb.rb
@@ -19,6 +19,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :branch, :message, 1, "gitaly.Branch"
optional :pre_receive_error, :string, 2
end
+ add_message "gitaly.UserCreateBranchError" do
+ oneof :error do
+ optional :custom_hook, :message, 1, "gitaly.CustomHookError"
+ end
+ end
add_message "gitaly.UserUpdateBranchRequest" do
optional :repository, :message, 1, "gitaly.Repository"
optional :branch_name, :bytes, 2
@@ -307,6 +312,7 @@ end
module Gitaly
UserCreateBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateBranchRequest").msgclass
UserCreateBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateBranchResponse").msgclass
+ UserCreateBranchError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateBranchError").msgclass
UserUpdateBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserUpdateBranchRequest").msgclass
UserUpdateBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserUpdateBranchResponse").msgclass
UserDeleteBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchRequest").msgclass