|
| @@ -368,6 +398,21 @@ type Event_JobUpdated struct { |
| 368 | | JobUpdated *JobUpdated `protobuf:"bytes,13,opt,name=job_updated,json=jobUpdated,proto3,oneof"` | 398 | | JobUpdated *JobUpdated `protobuf:"bytes,13,opt,name=job_updated,json=jobUpdated,proto3,oneof"` |
| 369 | | } | 399 | | } |
| 370 | | | 400 | | |
| | | 401 | + | type Event_CommentEdited struct { |
| | | 402 | + | // CommentEdited: the text of a merge request comment was changed. |
| | | 403 | + | CommentEdited *CommentEdited `protobuf:"bytes,14,opt,name=comment_edited,json=commentEdited,proto3,oneof"` |
| | | 404 | + | } |
| | | 405 | + | |
| | | 406 | + | type Event_CommentDeleted struct { |
| | | 407 | + | // CommentDeleted: a merge request comment was deleted. |
| | | 408 | + | CommentDeleted *CommentDeleted `protobuf:"bytes,15,opt,name=comment_deleted,json=commentDeleted,proto3,oneof"` |
| | | 409 | + | } |
| | | 410 | + | |
| | | 411 | + | type Event_CommentResolved struct { |
| | | 412 | + | // CommentResolved: a merge request comment was resolved or unresolved. |
| | | 413 | + | CommentResolved *CommentResolved `protobuf:"bytes,16,opt,name=comment_resolved,json=commentResolved,proto3,oneof"` |
| | | 414 | + | } |
| | | 415 | + | |
| 371 | | func (*Event_RepoCreated) isEvent_Kind() {} | 416 | | func (*Event_RepoCreated) isEvent_Kind() {} |
| 372 | | | 417 | | |
| 373 | | func (*Event_RepoUpdated) isEvent_Kind() {} | 418 | | func (*Event_RepoUpdated) isEvent_Kind() {} |
|
| @@ -850,6 +901,200 @@ func (x *CommentAdded) GetComment() *Comment { |
| 850 | | return nil | 901 | | return nil |
| 851 | | } | 902 | | } |
| 852 | | | 903 | | |
| | | 904 | + | // CommentEdited reports a comment of a merge request whose text was changed. |
| | | 905 | + | type CommentEdited struct { |
| | | 906 | + | state protoimpl.MessageState `protogen:"open.v1"` |
| | | 907 | + | // Repo is the name of the repository. |
| | | 908 | + | Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` |
| | | 909 | + | // Number is the number of the merge request. |
| | | 910 | + | Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` |
| | | 911 | + | // Comment is the comment after the edit. |
| | | 912 | + | Comment *Comment `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` |
| | | 913 | + | unknownFields protoimpl.UnknownFields |
| | | 914 | + | sizeCache protoimpl.SizeCache |
| | | 915 | + | } |
| | | 916 | + | |
| | | 917 | + | func (x *CommentEdited) Reset() { |
| | | 918 | + | *x = CommentEdited{} |
| | | 919 | + | mi := &file_ermite_event_proto_msgTypes[12] |
| | | 920 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | 921 | + | ms.StoreMessageInfo(mi) |
| | | 922 | + | } |
| | | 923 | + | |
| | | 924 | + | func (x *CommentEdited) String() string { |
| | | 925 | + | return protoimpl.X.MessageStringOf(x) |
| | | 926 | + | } |
| | | 927 | + | |
| | | 928 | + | func (*CommentEdited) ProtoMessage() {} |
| | | 929 | + | |
| | | 930 | + | func (x *CommentEdited) ProtoReflect() protoreflect.Message { |
| | | 931 | + | mi := &file_ermite_event_proto_msgTypes[12] |
| | | 932 | + | if x != nil { |
| | | 933 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | 934 | + | if ms.LoadMessageInfo() == nil { |
| | | 935 | + | ms.StoreMessageInfo(mi) |
| | | 936 | + | } |
| | | 937 | + | return ms |
| | | 938 | + | } |
| | | 939 | + | return mi.MessageOf(x) |
| | | 940 | + | } |
| | | 941 | + | |
| | | 942 | + | // Deprecated: Use CommentEdited.ProtoReflect.Descriptor instead. |
| | | 943 | + | func (*CommentEdited) Descriptor() ([]byte, []int) { |
| | | 944 | + | return file_ermite_event_proto_rawDescGZIP(), []int{12} |
| | | 945 | + | } |
| | | 946 | + | |
| | | 947 | + | func (x *CommentEdited) GetRepo() string { |
| | | 948 | + | if x != nil { |
| | | 949 | + | return x.Repo |
| | | 950 | + | } |
| | | 951 | + | return "" |
| | | 952 | + | } |
| | | 953 | + | |
| | | 954 | + | func (x *CommentEdited) GetNumber() int64 { |
| | | 955 | + | if x != nil { |
| | | 956 | + | return x.Number |
| | | 957 | + | } |
| | | 958 | + | return 0 |
| | | 959 | + | } |
| | | 960 | + | |
| | | 961 | + | func (x *CommentEdited) GetComment() *Comment { |
| | | 962 | + | if x != nil { |
| | | 963 | + | return x.Comment |
| | | 964 | + | } |
| | | 965 | + | return nil |
| | | 966 | + | } |
| | | 967 | + | |
| | | 968 | + | // CommentDeleted reports a comment of a merge request that was deleted. The |
| | | 969 | + | // comment stays in the thread with deleted set and an empty text. |
| | | 970 | + | type CommentDeleted struct { |
| | | 971 | + | state protoimpl.MessageState `protogen:"open.v1"` |
| | | 972 | + | // Repo is the name of the repository. |
| | | 973 | + | Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` |
| | | 974 | + | // Number is the number of the merge request. |
| | | 975 | + | Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` |
| | | 976 | + | // Comment is the comment after the deletion. |
| | | 977 | + | Comment *Comment `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` |
| | | 978 | + | unknownFields protoimpl.UnknownFields |
| | | 979 | + | sizeCache protoimpl.SizeCache |
| | | 980 | + | } |
| | | 981 | + | |
| | | 982 | + | func (x *CommentDeleted) Reset() { |
| | | 983 | + | *x = CommentDeleted{} |
| | | 984 | + | mi := &file_ermite_event_proto_msgTypes[13] |
| | | 985 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | 986 | + | ms.StoreMessageInfo(mi) |
| | | 987 | + | } |
| | | 988 | + | |
| | | 989 | + | func (x *CommentDeleted) String() string { |
| | | 990 | + | return protoimpl.X.MessageStringOf(x) |
| | | 991 | + | } |
| | | 992 | + | |
| | | 993 | + | func (*CommentDeleted) ProtoMessage() {} |
| | | 994 | + | |
| | | 995 | + | func (x *CommentDeleted) ProtoReflect() protoreflect.Message { |
| | | 996 | + | mi := &file_ermite_event_proto_msgTypes[13] |
| | | 997 | + | if x != nil { |
| | | 998 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | 999 | + | if ms.LoadMessageInfo() == nil { |
| | | 1000 | + | ms.StoreMessageInfo(mi) |
| | | 1001 | + | } |
| | | 1002 | + | return ms |
| | | 1003 | + | } |
| | | 1004 | + | return mi.MessageOf(x) |
| | | 1005 | + | } |
| | | 1006 | + | |
| | | 1007 | + | // Deprecated: Use CommentDeleted.ProtoReflect.Descriptor instead. |
| | | 1008 | + | func (*CommentDeleted) Descriptor() ([]byte, []int) { |
| | | 1009 | + | return file_ermite_event_proto_rawDescGZIP(), []int{13} |
| | | 1010 | + | } |
| | | 1011 | + | |
| | | 1012 | + | func (x *CommentDeleted) GetRepo() string { |
| | | 1013 | + | if x != nil { |
| | | 1014 | + | return x.Repo |
| | | 1015 | + | } |
| | | 1016 | + | return "" |
| | | 1017 | + | } |
| | | 1018 | + | |
| | | 1019 | + | func (x *CommentDeleted) GetNumber() int64 { |
| | | 1020 | + | if x != nil { |
| | | 1021 | + | return x.Number |
| | | 1022 | + | } |
| | | 1023 | + | return 0 |
| | | 1024 | + | } |
| | | 1025 | + | |
| | | 1026 | + | func (x *CommentDeleted) GetComment() *Comment { |
| | | 1027 | + | if x != nil { |
| | | 1028 | + | return x.Comment |
| | | 1029 | + | } |
| | | 1030 | + | return nil |
| | | 1031 | + | } |
| | | 1032 | + | |
| | | 1033 | + | // CommentResolved reports a comment of a merge request whose resolved state |
| | | 1034 | + | // changed. |
| | | 1035 | + | type CommentResolved struct { |
| | | 1036 | + | state protoimpl.MessageState `protogen:"open.v1"` |
| | | 1037 | + | // Repo is the name of the repository. |
| | | 1038 | + | Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` |
| | | 1039 | + | // Number is the number of the merge request. |
| | | 1040 | + | Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` |
| | | 1041 | + | // Comment is the comment after the change. |
| | | 1042 | + | Comment *Comment `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` |
| | | 1043 | + | unknownFields protoimpl.UnknownFields |
| | | 1044 | + | sizeCache protoimpl.SizeCache |
| | | 1045 | + | } |
| | | 1046 | + | |
| | | 1047 | + | func (x *CommentResolved) Reset() { |
| | | 1048 | + | *x = CommentResolved{} |
| | | 1049 | + | mi := &file_ermite_event_proto_msgTypes[14] |
| | | 1050 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | 1051 | + | ms.StoreMessageInfo(mi) |
| | | 1052 | + | } |
| | | 1053 | + | |
| | | 1054 | + | func (x *CommentResolved) String() string { |
| | | 1055 | + | return protoimpl.X.MessageStringOf(x) |
| | | 1056 | + | } |
| | | 1057 | + | |
| | | 1058 | + | func (*CommentResolved) ProtoMessage() {} |
| | | 1059 | + | |
| | | 1060 | + | func (x *CommentResolved) ProtoReflect() protoreflect.Message { |
| | | 1061 | + | mi := &file_ermite_event_proto_msgTypes[14] |
| | | 1062 | + | if x != nil { |
| | | 1063 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| | | 1064 | + | if ms.LoadMessageInfo() == nil { |
| | | 1065 | + | ms.StoreMessageInfo(mi) |
| | | 1066 | + | } |
| | | 1067 | + | return ms |
| | | 1068 | + | } |
| | | 1069 | + | return mi.MessageOf(x) |
| | | 1070 | + | } |
| | | 1071 | + | |
| | | 1072 | + | // Deprecated: Use CommentResolved.ProtoReflect.Descriptor instead. |
| | | 1073 | + | func (*CommentResolved) Descriptor() ([]byte, []int) { |
| | | 1074 | + | return file_ermite_event_proto_rawDescGZIP(), []int{14} |
| | | 1075 | + | } |
| | | 1076 | + | |
| | | 1077 | + | func (x *CommentResolved) GetRepo() string { |
| | | 1078 | + | if x != nil { |
| | | 1079 | + | return x.Repo |
| | | 1080 | + | } |
| | | 1081 | + | return "" |
| | | 1082 | + | } |
| | | 1083 | + | |
| | | 1084 | + | func (x *CommentResolved) GetNumber() int64 { |
| | | 1085 | + | if x != nil { |
| | | 1086 | + | return x.Number |
| | | 1087 | + | } |
| | | 1088 | + | return 0 |
| | | 1089 | + | } |
| | | 1090 | + | |
| | | 1091 | + | func (x *CommentResolved) GetComment() *Comment { |
| | | 1092 | + | if x != nil { |
| | | 1093 | + | return x.Comment |
| | | 1094 | + | } |
| | | 1095 | + | return nil |
| | | 1096 | + | } |
| | | 1097 | + | |
| 853 | | // Gap tells the client that events were lost: the requested resume point is | 1098 | | // Gap tells the client that events were lost: the requested resume point is |
| 854 | | // older than the server's buffer. It has no fields. The client should reload | 1099 | | // older than the server's buffer. It has no fields. The client should reload |
| 855 | | // the state it displays (repositories, refs, merge requests and their | 1100 | | // the state it displays (repositories, refs, merge requests and their |
|
| @@ -1075,46 +1335,55 @@ var file_ermite_event_proto_goTypes = []any{ |
| 1075 | | (*MergeRequestMerged)(nil), // 9: ermite.MergeRequestMerged | 1335 | | (*MergeRequestMerged)(nil), // 9: ermite.MergeRequestMerged |
| 1076 | | (*MergeRequestClosed)(nil), // 10: ermite.MergeRequestClosed | 1336 | | (*MergeRequestClosed)(nil), // 10: ermite.MergeRequestClosed |
| 1077 | | (*CommentAdded)(nil), // 11: ermite.CommentAdded | 1337 | | (*CommentAdded)(nil), // 11: ermite.CommentAdded |
| 1078 | - | (*Gap)(nil), // 12: ermite.Gap | 1338 | + | (*CommentEdited)(nil), // 12: ermite.CommentEdited |
| 1079 | - | (*RunUpdated)(nil), // 13: ermite.RunUpdated | 1339 | + | (*CommentDeleted)(nil), // 13: ermite.CommentDeleted |
| 1080 | - | (*JobUpdated)(nil), // 14: ermite.JobUpdated | 1340 | + | (*CommentResolved)(nil), // 14: ermite.CommentResolved |
| 1081 | - | (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp | 1341 | + | (*Gap)(nil), // 15: ermite.Gap |
| 1082 | - | (*Repo)(nil), // 16: ermite.Repo | 1342 | + | (*RunUpdated)(nil), // 16: ermite.RunUpdated |
| 1083 | - | (*MergeRequest)(nil), // 17: ermite.MergeRequest | 1343 | + | (*JobUpdated)(nil), // 17: ermite.JobUpdated |
| 1084 | - | (*Comment)(nil), // 18: ermite.Comment | 1344 | + | (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp |
| 1085 | - | (*Run)(nil), // 19: ermite.Run | 1345 | + | (*Repo)(nil), // 19: ermite.Repo |
| 1086 | - | (*RunJob)(nil), // 20: ermite.RunJob | 1346 | + | (*MergeRequest)(nil), // 20: ermite.MergeRequest |
| | | 1347 | + | (*Comment)(nil), // 21: ermite.Comment |
| | | 1348 | + | (*Run)(nil), // 22: ermite.Run |
| | | 1349 | + | (*RunJob)(nil), // 23: ermite.RunJob |
| 1087 | | } | 1350 | | } |
| 1088 | | var file_ermite_event_proto_depIdxs = []int32{ | 1351 | | var file_ermite_event_proto_depIdxs = []int32{ |
| 1089 | | 2, // 0: ermite.WatchResponse.event:type_name -> ermite.Event | 1352 | | 2, // 0: ermite.WatchResponse.event:type_name -> ermite.Event |
| 1090 | - | 15, // 1: ermite.Event.time:type_name -> google.protobuf.Timestamp | 1353 | + | 18, // 1: ermite.Event.time:type_name -> google.protobuf.Timestamp |
| 1091 | | 3, // 2: ermite.Event.repo_created:type_name -> ermite.RepoCreated | 1354 | | 3, // 2: ermite.Event.repo_created:type_name -> ermite.RepoCreated |
| 1092 | | 4, // 3: ermite.Event.repo_updated:type_name -> ermite.RepoUpdated | 1355 | | 4, // 3: ermite.Event.repo_updated:type_name -> ermite.RepoUpdated |
| 1093 | | 5, // 4: ermite.Event.repo_deleted:type_name -> ermite.RepoDeleted | 1356 | | 5, // 4: ermite.Event.repo_deleted:type_name -> ermite.RepoDeleted |
| 1094 | | 6, // 5: ermite.Event.pushed:type_name -> ermite.Pushed | 1357 | | 6, // 5: ermite.Event.pushed:type_name -> ermite.Pushed |
| 1095 | - | 12, // 6: ermite.Event.gap:type_name -> ermite.Gap | 1358 | + | 15, // 6: ermite.Event.gap:type_name -> ermite.Gap |
| 1096 | | 8, // 7: ermite.Event.merge_request_opened:type_name -> ermite.MergeRequestOpened | 1359 | | 8, // 7: ermite.Event.merge_request_opened:type_name -> ermite.MergeRequestOpened |
| 1097 | | 9, // 8: ermite.Event.merge_request_merged:type_name -> ermite.MergeRequestMerged | 1360 | | 9, // 8: ermite.Event.merge_request_merged:type_name -> ermite.MergeRequestMerged |
| 1098 | | 10, // 9: ermite.Event.merge_request_closed:type_name -> ermite.MergeRequestClosed | 1361 | | 10, // 9: ermite.Event.merge_request_closed:type_name -> ermite.MergeRequestClosed |
| 1099 | | 11, // 10: ermite.Event.comment_added:type_name -> ermite.CommentAdded | 1362 | | 11, // 10: ermite.Event.comment_added:type_name -> ermite.CommentAdded |
| 1100 | - | 13, // 11: ermite.Event.run_updated:type_name -> ermite.RunUpdated | 1363 | + | 16, // 11: ermite.Event.run_updated:type_name -> ermite.RunUpdated |
| 1101 | - | 14, // 12: ermite.Event.job_updated:type_name -> ermite.JobUpdated | 1364 | + | 17, // 12: ermite.Event.job_updated:type_name -> ermite.JobUpdated |
| 1102 | - | 16, // 13: ermite.RepoCreated.repo:type_name -> ermite.Repo | 1365 | + | 12, // 13: ermite.Event.comment_edited:type_name -> ermite.CommentEdited |
| 1103 | - | 16, // 14: ermite.RepoUpdated.repo:type_name -> ermite.Repo | 1366 | + | 13, // 14: ermite.Event.comment_deleted:type_name -> ermite.CommentDeleted |
| 1104 | - | 7, // 15: ermite.Pushed.ref_updates:type_name -> ermite.RefUpdate | 1367 | + | 14, // 15: ermite.Event.comment_resolved:type_name -> ermite.CommentResolved |
| 1105 | - | 17, // 16: ermite.MergeRequestOpened.merge_request:type_name -> ermite.MergeRequest | 1368 | + | 19, // 16: ermite.RepoCreated.repo:type_name -> ermite.Repo |
| 1106 | - | 17, // 17: ermite.MergeRequestMerged.merge_request:type_name -> ermite.MergeRequest | 1369 | + | 19, // 17: ermite.RepoUpdated.repo:type_name -> ermite.Repo |
| 1107 | - | 17, // 18: ermite.MergeRequestClosed.merge_request:type_name -> ermite.MergeRequest | 1370 | + | 7, // 18: ermite.Pushed.ref_updates:type_name -> ermite.RefUpdate |
| 1108 | - | 18, // 19: ermite.CommentAdded.comment:type_name -> ermite.Comment | 1371 | + | 20, // 19: ermite.MergeRequestOpened.merge_request:type_name -> ermite.MergeRequest |
| 1109 | - | 19, // 20: ermite.RunUpdated.run:type_name -> ermite.Run | 1372 | + | 20, // 20: ermite.MergeRequestMerged.merge_request:type_name -> ermite.MergeRequest |
| 1110 | - | 20, // 21: ermite.JobUpdated.job:type_name -> ermite.RunJob | 1373 | + | 20, // 21: ermite.MergeRequestClosed.merge_request:type_name -> ermite.MergeRequest |
| 1111 | - | 0, // 22: ermite.EventService.Watch:input_type -> ermite.WatchRequest | 1374 | + | 21, // 22: ermite.CommentAdded.comment:type_name -> ermite.Comment |
| 1112 | - | 1, // 23: ermite.EventService.Watch:output_type -> ermite.WatchResponse | 1375 | + | 21, // 23: ermite.CommentEdited.comment:type_name -> ermite.Comment |
| 1113 | - | 23, // [23:24] is the sub-list for method output_type | 1376 | + | 21, // 24: ermite.CommentDeleted.comment:type_name -> ermite.Comment |
| 1114 | - | 22, // [22:23] is the sub-list for method input_type | 1377 | + | 21, // 25: ermite.CommentResolved.comment:type_name -> ermite.Comment |
| 1115 | - | 22, // [22:22] is the sub-list for extension type_name | 1378 | + | 22, // 26: ermite.RunUpdated.run:type_name -> ermite.Run |
| 1116 | - | 22, // [22:22] is the sub-list for extension extendee | 1379 | + | 23, // 27: ermite.JobUpdated.job:type_name -> ermite.RunJob |
| 1117 | - | 0, // [0:22] is the sub-list for field type_name | 1380 | + | 0, // 28: ermite.EventService.Watch:input_type -> ermite.WatchRequest |
| | | 1381 | + | 1, // 29: ermite.EventService.Watch:output_type -> ermite.WatchResponse |
| | | 1382 | + | 29, // [29:30] is the sub-list for method output_type |
| | | 1383 | + | 28, // [28:29] is the sub-list for method input_type |
| | | 1384 | + | 28, // [28:28] is the sub-list for extension type_name |
| | | 1385 | + | 28, // [28:28] is the sub-list for extension extendee |
| | | 1386 | + | 0, // [0:28] is the sub-list for field type_name |
| 1118 | | } | 1387 | | } |
| 1119 | | | 1388 | | |
| 1120 | | func init() { file_ermite_event_proto_init() } | 1389 | | func init() { file_ermite_event_proto_init() } |