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:
Diffstat (limited to 'proto/hook.proto')
-rw-r--r--proto/hook.proto9
1 files changed, 3 insertions, 6 deletions
diff --git a/proto/hook.proto b/proto/hook.proto
index 1c78842e7..99cfe3466 100644
--- a/proto/hook.proto
+++ b/proto/hook.proto
@@ -10,25 +10,22 @@ service HookService {
rpc PreReceiveHook(stream PreReceiveHookRequest) returns (stream PreReceiveHookResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc PostReceiveHook(stream PostReceiveHookRequest) returns (stream PostReceiveHookResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc UpdateHook(UpdateHookRequest) returns (stream UpdateHookResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
}
message PreReceiveHookRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
string key_id = 2;
string protocol = 3;
bytes stdin = 4;
@@ -41,7 +38,7 @@ message PreReceiveHookResponse{
}
message PostReceiveHookRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
string key_id = 2;
bytes stdin = 3;
repeated string git_push_options = 4;
@@ -54,7 +51,7 @@ message PostReceiveHookResponse{
}
message UpdateHookRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
string key_id = 2;
bytes ref = 3;
string old_value = 4;