blob: 2410d3b286c9204571b3f14c9be8df471f682b6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
syntax = "proto3";
package gitaly;
option go_package = "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb";
import "shared.proto";
service HookService {
rpc PreReceiveHook(PreReceiveHookRequest) returns (PreReceiveHookResponse) {
option (op_type) = {
op: ACCESSOR
target_repository_field: "1"
};
}
rpc PostReceiveHook(PostReceiveHookRequest) returns (PostReceiveHookResponse) {
option (op_type) = {
op: ACCESSOR
target_repository_field: "1"
};
}
rpc UpdateHook(UpdateHookRequest) returns (UpdateHookResponse) {
option (op_type) = {
op: ACCESSOR
target_repository_field: "1"
};
}
}
message PreReceiveHookRequest {
Repository repository = 1;
string key_id = 2;
string protocol = 3;
bytes stdin = 4;
}
message PreReceiveHookResponse{
bytes stdout = 1;
bytes stderr = 2;
bool success = 3;
}
message PostReceiveHookRequest {
Repository repository = 1;
string key_id = 2;
bytes stdin = 3;
}
message PostReceiveHookResponse{
bytes stdout = 1;
bytes stderr = 2;
bool success = 3;
}
message UpdateHookRequest {
Repository repository = 1;
string key_id = 2;
bytes ref = 3;
string old_value = 4;
string new_value = 5;
}
message UpdateHookResponse{
bytes stdout = 1;
bytes stderr = 2;
bool success = 3;
}
|