Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(proto): vcs pushEvent (#6382)
p0ny1f3f1b515c75
diff --git a/frontend/src/types/proto/store/vcs.ts b/frontend/src/types/proto/store/vcs.tsnew file mode 100644index 0000000000..fcf4a0419e--- /dev/null+++ b/frontend/src/types/proto/store/vcs.ts@@ -0,0 +1,667 @@+/* eslint-disable */+import * as Long from "long";+import * as _m0 from "protobufjs/minimal";++export const protobufPackage = "bytebase.store";++export enum VcsType {+ VCS_TYPE_UNSPECIFIED = 0,+ GITLAB = 1,+ GITHUB = 2,+ BITBUCKET = 3,+ UNRECOGNIZED = -1,+}++export function vcsTypeFromJSON(object: any): VcsType {+ switch (object) {+ case 0:+ case "VCS_TYPE_UNSPECIFIED":+ return VcsType.VCS_TYPE_UNSPECIFIED;+ case 1:+ case "GITLAB":+ return VcsType.GITLAB;+ case 2:+ case "GITHUB":+ return VcsType.GITHUB;+ case 3:+ case "BITBUCKET":+ return VcsType.BITBUCKET;+ case -1:+ case "UNRECOGNIZED":+ default:+ return VcsType.UNRECOGNIZED;+ }+}++export function vcsTypeToJSON(object: VcsType): string {+ switch (object) {+ case VcsType.VCS_TYPE_UNSPECIFIED:+ return "VCS_TYPE_UNSPECIFIED";+ case VcsType.GITLAB:+ return "GITLAB";+ case VcsType.GITHUB:+ return "GITHUB";+ case VcsType.BITBUCKET:+ return "BITBUCKET";+ case VcsType.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface PushEvent {+ vcsType: VcsType;+ baseDirectory: string;+ ref: string;+ before: string;+ after: string;+ repositoryId: string;+ repositoryUrl: string;+ repositoryFullPath: string;+ authorName: string;+ commits: Commit[];+ fileCommit?: FileCommit;+}++export interface Commit {+ id: string;+ title: string;+ message: string;+ createdTs: number;+ url: string;+ authorName: string;+ authorEmail: string;+ addedList: string[];+ modifiedList: string[];+}++export interface FileCommit {+ id: string;+ title: string;+ message: string;+ createdTs: number;+ url: string;+ authorName: string;+ authorEmail: string;+ added: string;+}++function createBasePushEvent(): PushEvent {+ return {+ vcsType: 0,+ baseDirectory: "",+ ref: "",+ before: "",+ after: "",+ repositoryId: "",+ repositoryUrl: "",+ repositoryFullPath: "",+ authorName: "",+ commits: [],+ fileCommit: undefined,+ };+}++export const PushEvent = {+ encode(message: PushEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.vcsType !== 0) {+ writer.uint32(8).int32(message.vcsType);+ }+ if (message.baseDirectory !== "") {+ writer.uint32(18).string(message.baseDirectory);+ }+ if (message.ref !== "") {+ writer.uint32(26).string(message.ref);+ }+ if (message.before !== "") {+ writer.uint32(34).string(message.before);+ }+ if (message.after !== "") {+ writer.uint32(42).string(message.after);+ }+ if (message.repositoryId !== "") {+ writer.uint32(50).string(message.repositoryId);+ }+ if (message.repositoryUrl !== "") {+ writer.uint32(58).string(message.repositoryUrl);+ }+ if (message.repositoryFullPath !== "") {+ writer.uint32(66).string(message.repositoryFullPath);+ }+ if (message.authorName !== "") {+ writer.uint32(74).string(message.authorName);+ }+ for (const v of message.commits) {+ Commit.encode(v!, writer.uint32(82).fork()).ldelim();+ }+ if (message.fileCommit !== undefined) {+ FileCommit.encode(message.fileCommit, writer.uint32(90).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): PushEvent {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePushEvent();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.vcsType = reader.int32() as any;+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.baseDirectory = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.ref = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.before = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.after = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.repositoryId = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.repositoryUrl = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.repositoryFullPath = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.authorName = reader.string();+ continue;+ case 10:+ if (tag !== 82) {+ break;+ }++ message.commits.push(Commit.decode(reader, reader.uint32()));+ continue;+ case 11:+ if (tag !== 90) {+ break;+ }++ message.fileCommit = FileCommit.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): PushEvent {+ return {+ vcsType: isSet(object.vcsType) ? vcsTypeFromJSON(object.vcsType) : 0,+ baseDirectory: isSet(object.baseDirectory) ? String(object.baseDirectory) : "",+ ref: isSet(object.ref) ? String(object.ref) : "",+ before: isSet(object.before) ? String(object.before) : "",+ after: isSet(object.after) ? String(object.after) : "",+ repositoryId: isSet(object.repositoryId) ? String(object.repositoryId) : "",+ repositoryUrl: isSet(object.repositoryUrl) ? String(object.repositoryUrl) : "",+ repositoryFullPath: isSet(object.repositoryFullPath) ? String(object.repositoryFullPath) : "",+ authorName: isSet(object.authorName) ? String(object.authorName) : "",+ commits: Array.isArray(object?.commits) ? object.commits.map((e: any) => Commit.fromJSON(e)) : [],+ fileCommit: isSet(object.fileCommit) ? FileCommit.fromJSON(object.fileCommit) : undefined,+ };+ },++ toJSON(message: PushEvent): unknown {+ const obj: any = {};+ message.vcsType !== undefined && (obj.vcsType = vcsTypeToJSON(message.vcsType));+ message.baseDirectory !== undefined && (obj.baseDirectory = message.baseDirectory);+ message.ref !== undefined && (obj.ref = message.ref);+ message.before !== undefined && (obj.before = message.before);+ message.after !== undefined && (obj.after = message.after);+ message.repositoryId !== undefined && (obj.repositoryId = message.repositoryId);+ message.repositoryUrl !== undefined && (obj.repositoryUrl = message.repositoryUrl);+ message.repositoryFullPath !== undefined && (obj.repositoryFullPath = message.repositoryFullPath);+ message.authorName !== undefined && (obj.authorName = message.authorName);+ if (message.commits) {+ obj.commits = message.commits.map((e) => e ? Commit.toJSON(e) : undefined);+ } else {+ obj.commits = [];+ }+ message.fileCommit !== undefined &&+ (obj.fileCommit = message.fileCommit ? FileCommit.toJSON(message.fileCommit) : undefined);+ return obj;+ },++ create(base?: DeepPartial<PushEvent>): PushEvent {+ return PushEvent.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<PushEvent>): PushEvent {+ const message = createBasePushEvent();+ message.vcsType = object.vcsType ?? 0;+ message.baseDirectory = object.baseDirectory ?? "";+ message.ref = object.ref ?? "";+ message.before = object.before ?? "";+ message.after = object.after ?? "";+ message.repositoryId = object.repositoryId ?? "";+ message.repositoryUrl = object.repositoryUrl ?? "";+ message.repositoryFullPath = object.repositoryFullPath ?? "";+ message.authorName = object.authorName ?? "";+ message.commits = object.commits?.map((e) => Commit.fromPartial(e)) || [];+ message.fileCommit = (object.fileCommit !== undefined && object.fileCommit !== null)+ ? FileCommit.fromPartial(object.fileCommit)+ : undefined;+ return message;+ },+};++function createBaseCommit(): Commit {+ return {+ id: "",+ title: "",+ message: "",+ createdTs: 0,+ url: "",+ authorName: "",+ authorEmail: "",+ addedList: [],+ modifiedList: [],+ };+}++export const Commit = {+ encode(message: Commit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.id !== "") {+ writer.uint32(10).string(message.id);+ }+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ if (message.message !== "") {+ writer.uint32(26).string(message.message);+ }+ if (message.createdTs !== 0) {+ writer.uint32(32).int64(message.createdTs);+ }+ if (message.url !== "") {+ writer.uint32(42).string(message.url);+ }+ if (message.authorName !== "") {+ writer.uint32(50).string(message.authorName);+ }+ if (message.authorEmail !== "") {+ writer.uint32(58).string(message.authorEmail);+ }+ for (const v of message.addedList) {+ writer.uint32(66).string(v!);+ }+ for (const v of message.modifiedList) {+ writer.uint32(74).string(v!);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Commit {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseCommit();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.id = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.title = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.message = reader.string();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.createdTs = longToNumber(reader.int64() as Long);+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.url = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.authorName = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.authorEmail = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.addedList.push(reader.string());+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.modifiedList.push(reader.string());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Commit {+ return {+ id: isSet(object.id) ? String(object.id) : "",+ title: isSet(object.title) ? String(object.title) : "",+ message: isSet(object.message) ? String(object.message) : "",+ createdTs: isSet(object.createdTs) ? Number(object.createdTs) : 0,+ url: isSet(object.url) ? String(object.url) : "",+ authorName: isSet(object.authorName) ? String(object.authorName) : "",+ authorEmail: isSet(object.authorEmail) ? String(object.authorEmail) : "",+ addedList: Array.isArray(object?.addedList) ? object.addedList.map((e: any) => String(e)) : [],+ modifiedList: Array.isArray(object?.modifiedList) ? object.modifiedList.map((e: any) => String(e)) : [],+ };+ },++ toJSON(message: Commit): unknown {+ const obj: any = {};+ message.id !== undefined && (obj.id = message.id);+ message.title !== undefined && (obj.title = message.title);+ message.message !== undefined && (obj.message = message.message);+ message.createdTs !== undefined && (obj.createdTs = Math.round(message.createdTs));+ message.url !== undefined && (obj.url = message.url);+ message.authorName !== undefined && (obj.authorName = message.authorName);+ message.authorEmail !== undefined && (obj.authorEmail = message.authorEmail);+ if (message.addedList) {+ obj.addedList = message.addedList.map((e) => e);+ } else {+ obj.addedList = [];+ }+ if (message.modifiedList) {+ obj.modifiedList = message.modifiedList.map((e) => e);+ } else {+ obj.modifiedList = [];+ }+ return obj;+ },++ create(base?: DeepPartial<Commit>): Commit {+ return Commit.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Commit>): Commit {+ const message = createBaseCommit();+ message.id = object.id ?? "";+ message.title = object.title ?? "";+ message.message = object.message ?? "";+ message.createdTs = object.createdTs ?? 0;+ message.url = object.url ?? "";+ message.authorName = object.authorName ?? "";+ message.authorEmail = object.authorEmail ?? "";+ message.addedList = object.addedList?.map((e) => e) || [];+ message.modifiedList = object.modifiedList?.map((e) => e) || [];+ return message;+ },+};++function createBaseFileCommit(): FileCommit {+ return { id: "", title: "", message: "", createdTs: 0, url: "", authorName: "", authorEmail: "", added: "" };+}++export const FileCommit = {+ encode(message: FileCommit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.id !== "") {+ writer.uint32(10).string(message.id);+ }+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ if (message.message !== "") {+ writer.uint32(26).string(message.message);+ }+ if (message.createdTs !== 0) {+ writer.uint32(32).int64(message.createdTs);+ }+ if (message.url !== "") {+ writer.uint32(42).string(message.url);+ }+ if (message.authorName !== "") {+ writer.uint32(50).string(message.authorName);+ }+ if (message.authorEmail !== "") {+ writer.uint32(58).string(message.authorEmail);+ }+ if (message.added !== "") {+ writer.uint32(66).string(message.added);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): FileCommit {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseFileCommit();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.id = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.title = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.message = reader.string();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.createdTs = longToNumber(reader.int64() as Long);+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.url = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.authorName = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.authorEmail = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.added = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): FileCommit {+ return {+ id: isSet(object.id) ? String(object.id) : "",+ title: isSet(object.title) ? String(object.title) : "",+ message: isSet(object.message) ? String(object.message) : "",+ createdTs: isSet(object.createdTs) ? Number(object.createdTs) : 0,+ url: isSet(object.url) ? String(object.url) : "",+ authorName: isSet(object.authorName) ? String(object.authorName) : "",+ authorEmail: isSet(object.authorEmail) ? String(object.authorEmail) : "",+ added: isSet(object.added) ? String(object.added) : "",+ };+ },++ toJSON(message: FileCommit): unknown {+ const obj: any = {};+ message.id !== undefined && (obj.id = message.id);+ message.title !== undefined && (obj.title = message.title);+ message.message !== undefined && (obj.message = message.message);+ message.createdTs !== undefined && (obj.createdTs = Math.round(message.createdTs));+ message.url !== undefined && (obj.url = message.url);+ message.authorName !== undefined && (obj.authorName = message.authorName);+ message.authorEmail !== undefined && (obj.authorEmail = message.authorEmail);+ message.added !== undefined && (obj.added = message.added);+ return obj;+ },++ create(base?: DeepPartial<FileCommit>): FileCommit {+ return FileCommit.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<FileCommit>): FileCommit {+ const message = createBaseFileCommit();+ message.id = object.id ?? "";+ message.title = object.title ?? "";+ message.message = object.message ?? "";+ message.createdTs = object.createdTs ?? 0;+ message.url = object.url ?? "";+ message.authorName = object.authorName ?? "";+ message.authorEmail = object.authorEmail ?? "";+ message.added = object.added ?? "";+ return message;+ },+};++declare var self: any | undefined;+declare var window: any | undefined;+declare var global: any | undefined;+var tsProtoGlobalThis: any = (() => {+ if (typeof globalThis !== "undefined") {+ return globalThis;+ }+ if (typeof self !== "undefined") {+ return self;+ }+ if (typeof window !== "undefined") {+ return window;+ }+ if (typeof global !== "undefined") {+ return global;+ }+ throw "Unable to locate global object";+})();++type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;++export type DeepPartial<T> = T extends Builtin ? T+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }+ : Partial<T>;++function longToNumber(long: Long): number {+ if (long.gt(Number.MAX_SAFE_INTEGER)) {+ throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");+ }+ return long.toNumber();+}++// If you get a compile-error about 'Constructor<Long> and ... have no overlap',+// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.+if (_m0.util.Long !== Long) {+ _m0.util.Long = Long as any;+ _m0.configure();+}++function isSet(value: any): boolean {+ return value !== null && value !== undefined;+}diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex b605842dd8..f87c7b5ce6 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -96,6 +96,13 @@- [store/user.proto](#store_user-proto)- [MFAConfig](#bytebase-store-MFAConfig)+- [store/vcs.proto](#store_vcs-proto)+ - [Commit](#bytebase-store-Commit)+ - [FileCommit](#bytebase-store-FileCommit)+ - [PushEvent](#bytebase-store-PushEvent)++ - [VcsType](#bytebase-store-VcsType)+- [Scalar Value Types](#scalar-value-types)@@ -1421,6 +1428,106 @@ MFAConfig is the MFA configuration for a user.+<a name="store_vcs-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## store/vcs.proto++++<a name="bytebase-store-Commit"></a>++### Commit++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | |+| title | [string](#string) | | |+| message | [string](#string) | | |+| created_ts | [int64](#int64) | | |+| url | [string](#string) | | |+| author_name | [string](#string) | | |+| author_email | [string](#string) | | |+| added_list | [string](#string) | repeated | |+| modified_list | [string](#string) | repeated | |+++++++<a name="bytebase-store-FileCommit"></a>++### FileCommit++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | |+| title | [string](#string) | | |+| message | [string](#string) | | |+| created_ts | [int64](#int64) | | |+| url | [string](#string) | | |+| author_name | [string](#string) | | |+| author_email | [string](#string) | | |+| added | [string](#string) | | |+++++++<a name="bytebase-store-PushEvent"></a>++### PushEvent++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| vcs_type | [VcsType](#bytebase-store-VcsType) | | |+| base_directory | [string](#string) | | |+| ref | [string](#string) | | |+| before | [string](#string) | | |+| after | [string](#string) | | |+| repository_id | [string](#string) | | |+| repository_url | [string](#string) | | |+| repository_full_path | [string](#string) | | |+| author_name | [string](#string) | | |+| commits | [Commit](#bytebase-store-Commit) | repeated | |+| file_commit | [FileCommit](#bytebase-store-FileCommit) | | |+++++++++<a name="bytebase-store-VcsType"></a>++### VcsType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| VCS_TYPE_UNSPECIFIED | 0 | |+| GITLAB | 1 | |+| GITHUB | 2 | |+| BITBUCKET | 3 | |++++++++++## Scalar Value Types| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |diff --git a/proto/generated-go/store/vcs.pb.go b/proto/generated-go/store/vcs.pb.gonew file mode 100644index 0000000000..4101607261--- /dev/null+++ b/proto/generated-go/store/vcs.pb.go@@ -0,0 +1,580 @@+// Code generated by protoc-gen-go. DO NOT EDIT.+// versions:+// protoc-gen-go v1.30.0+// protoc (unknown)+// source: store/vcs.proto++package store++import (+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"+ reflect "reflect"+ sync "sync"+)++const (+ // Verify that this generated code is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)+ // Verify that runtime/protoimpl is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)+)++type VcsType int32++const (+ VcsType_VCS_TYPE_UNSPECIFIED VcsType = 0+ VcsType_GITLAB VcsType = 1+ VcsType_GITHUB VcsType = 2+ VcsType_BITBUCKET VcsType = 3+)++// Enum value maps for VcsType.+var (+ VcsType_name = map[int32]string{+ 0: "VCS_TYPE_UNSPECIFIED",+ 1: "GITLAB",+ 2: "GITHUB",+ 3: "BITBUCKET",+ }+ VcsType_value = map[string]int32{+ "VCS_TYPE_UNSPECIFIED": 0,+ "GITLAB": 1,+ "GITHUB": 2,+ "BITBUCKET": 3,+ }+)++func (x VcsType) Enum() *VcsType {+ p := new(VcsType)+ *p = x+ return p+}++func (x VcsType) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (VcsType) Descriptor() protoreflect.EnumDescriptor {+ return file_store_vcs_proto_enumTypes[0].Descriptor()+}++func (VcsType) Type() protoreflect.EnumType {+ return &file_store_vcs_proto_enumTypes[0]+}++func (x VcsType) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use VcsType.Descriptor instead.+func (VcsType) EnumDescriptor() ([]byte, []int) {+ return file_store_vcs_proto_rawDescGZIP(), []int{0}+}++type PushEvent struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ VcsType VcsType `protobuf:"varint,1,opt,name=vcs_type,json=vcsType,proto3,enum=bytebase.store.VcsType" json:"vcs_type,omitempty"`+ BaseDirectory string `protobuf:"bytes,2,opt,name=base_directory,json=baseDirectory,proto3" json:"base_directory,omitempty"`+ Ref string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`+ Before string `protobuf:"bytes,4,opt,name=before,proto3" json:"before,omitempty"`+ After string `protobuf:"bytes,5,opt,name=after,proto3" json:"after,omitempty"`+ RepositoryId string `protobuf:"bytes,6,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"`+ RepositoryUrl string `protobuf:"bytes,7,opt,name=repository_url,json=repositoryUrl,proto3" json:"repository_url,omitempty"`+ RepositoryFullPath string `protobuf:"bytes,8,opt,name=repository_full_path,json=repositoryFullPath,proto3" json:"repository_full_path,omitempty"`+ AuthorName string `protobuf:"bytes,9,opt,name=author_name,json=authorName,proto3" json:"author_name,omitempty"`+ Commits []*Commit `protobuf:"bytes,10,rep,name=commits,proto3" json:"commits,omitempty"`+ FileCommit *FileCommit `protobuf:"bytes,11,opt,name=file_commit,json=fileCommit,proto3" json:"file_commit,omitempty"`+}++func (x *PushEvent) Reset() {+ *x = PushEvent{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_vcs_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *PushEvent) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PushEvent) ProtoMessage() {}++func (x *PushEvent) ProtoReflect() protoreflect.Message {+ mi := &file_store_vcs_proto_msgTypes[0]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use PushEvent.ProtoReflect.Descriptor instead.+func (*PushEvent) Descriptor() ([]byte, []int) {+ return file_store_vcs_proto_rawDescGZIP(), []int{0}+}++func (x *PushEvent) GetVcsType() VcsType {+ if x != nil {+ return x.VcsType+ }+ return VcsType_VCS_TYPE_UNSPECIFIED+}++func (x *PushEvent) GetBaseDirectory() string {+ if x != nil {+ return x.BaseDirectory+ }+ return ""+}++func (x *PushEvent) GetRef() string {+ if x != nil {+ return x.Ref+ }+ return ""+}++func (x *PushEvent) GetBefore() string {+ if x != nil {+ return x.Before+ }+ return ""+}++func (x *PushEvent) GetAfter() string {+ if x != nil {+ return x.After+ }+ return ""+}++func (x *PushEvent) GetRepositoryId() string {+ if x != nil {+ return x.RepositoryId+ }+ return ""+}++func (x *PushEvent) GetRepositoryUrl() string {+ if x != nil {+ return x.RepositoryUrl+ }+ return ""+}++func (x *PushEvent) GetRepositoryFullPath() string {+ if x != nil {+ return x.RepositoryFullPath+ }+ return ""+}++func (x *PushEvent) GetAuthorName() string {+ if x != nil {+ return x.AuthorName+ }+ return ""+}++func (x *PushEvent) GetCommits() []*Commit {+ if x != nil {+ return x.Commits+ }+ return nil+}++func (x *PushEvent) GetFileCommit() *FileCommit {+ if x != nil {+ return x.FileCommit+ }+ return nil+}++type Commit struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`+ CreatedTs int64 `protobuf:"varint,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`+ Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`+ AuthorName string `protobuf:"bytes,6,opt,name=author_name,json=authorName,proto3" json:"author_name,omitempty"`+ AuthorEmail string `protobuf:"bytes,7,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"`+ AddedList []string `protobuf:"bytes,8,rep,name=added_list,json=addedList,proto3" json:"added_list,omitempty"`+ ModifiedList []string `protobuf:"bytes,9,rep,name=modified_list,json=modifiedList,proto3" json:"modified_list,omitempty"`+}++func (x *Commit) Reset() {+ *x = Commit{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_vcs_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Commit) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Commit) ProtoMessage() {}++func (x *Commit) ProtoReflect() protoreflect.Message {+ mi := &file_store_vcs_proto_msgTypes[1]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Commit.ProtoReflect.Descriptor instead.+func (*Commit) Descriptor() ([]byte, []int) {+ return file_store_vcs_proto_rawDescGZIP(), []int{1}+}++func (x *Commit) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *Commit) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Commit) GetMessage() string {+ if x != nil {+ return x.Message+ }+ return ""+}++func (x *Commit) GetCreatedTs() int64 {+ if x != nil {+ return x.CreatedTs+ }+ return 0+}++func (x *Commit) GetUrl() string {+ if x != nil {+ return x.Url+ }+ return ""+}++func (x *Commit) GetAuthorName() string {+ if x != nil {+ return x.AuthorName+ }+ return ""+}++func (x *Commit) GetAuthorEmail() string {+ if x != nil {+ return x.AuthorEmail+ }+ return ""+}++func (x *Commit) GetAddedList() []string {+ if x != nil {+ return x.AddedList+ }+ return nil+}++func (x *Commit) GetModifiedList() []string {+ if x != nil {+ return x.ModifiedList+ }+ return nil+}++type FileCommit struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`+ CreatedTs int64 `protobuf:"varint,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`+ Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`+ AuthorName string `protobuf:"bytes,6,opt,name=author_name,json=authorName,proto3" json:"author_name,omitempty"`+ AuthorEmail string `protobuf:"bytes,7,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"`+ Added string `protobuf:"bytes,8,opt,name=added,proto3" json:"added,omitempty"`+}++func (x *FileCommit) Reset() {+ *x = FileCommit{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_vcs_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *FileCommit) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*FileCommit) ProtoMessage() {}++func (x *FileCommit) ProtoReflect() protoreflect.Message {+ mi := &file_store_vcs_proto_msgTypes[2]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use FileCommit.ProtoReflect.Descriptor instead.+func (*FileCommit) Descriptor() ([]byte, []int) {+ return file_store_vcs_proto_rawDescGZIP(), []int{2}+}++func (x *FileCommit) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *FileCommit) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *FileCommit) GetMessage() string {+ if x != nil {+ return x.Message+ }+ return ""+}++func (x *FileCommit) GetCreatedTs() int64 {+ if x != nil {+ return x.CreatedTs+ }+ return 0+}++func (x *FileCommit) GetUrl() string {+ if x != nil {+ return x.Url+ }+ return ""+}++func (x *FileCommit) GetAuthorName() string {+ if x != nil {+ return x.AuthorName+ }+ return ""+}++func (x *FileCommit) GetAuthorEmail() string {+ if x != nil {+ return x.AuthorEmail+ }+ return ""+}++func (x *FileCommit) GetAdded() string {+ if x != nil {+ return x.Added+ }+ return ""+}++var File_store_vcs_proto protoreflect.FileDescriptor++var file_store_vcs_proto_rawDesc = []byte{+ 0x0a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x22, 0xb4, 0x03, 0x0a, 0x09, 0x50, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,+ 0x32, 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,+ 0x72, 0x65, 0x2e, 0x56, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76, 0x63, 0x73, 0x54,+ 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x65,+ 0x63, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x61, 0x73,+ 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x65,+ 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x16, 0x0a, 0x06,+ 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x65,+ 0x66, 0x6f, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x66, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65,+ 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12,+ 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x75, 0x72,+ 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,+ 0x6f, 0x72, 0x79, 0x55, 0x72, 0x6c, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69,+ 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x08,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79,+ 0x46, 0x75, 0x6c, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68,+ 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61,+ 0x75, 0x74, 0x68, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x63, 0x6f, 0x6d,+ 0x6d, 0x69, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d,+ 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x66,+ 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0a, 0x66, 0x69,+ 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x81, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6d,+ 0x6d, 0x69, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,+ 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,+ 0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74,+ 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,+ 0x54, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x5f, 0x6e,+ 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f,+ 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x5f,+ 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x75, 0x74,+ 0x68, 0x6f, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x64, 0x64, 0x65,+ 0x64, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x64,+ 0x64, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x64, 0x69, 0x66,+ 0x69, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c,+ 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xd7, 0x01, 0x0a,+ 0x0a, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74,+ 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,+ 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63,+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,+ 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72,+ 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b,+ 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a,+ 0x0c, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c,+ 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x64, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x05, 0x61, 0x64, 0x64, 0x65, 0x64, 0x2a, 0x4a, 0x0a, 0x07, 0x56, 0x63, 0x73, 0x54, 0x79, 0x70,+ 0x65, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x43, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x47,+ 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x48, 0x55,+ 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54,+ 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,+ 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+}++var (+ file_store_vcs_proto_rawDescOnce sync.Once+ file_store_vcs_proto_rawDescData = file_store_vcs_proto_rawDesc+)++func file_store_vcs_proto_rawDescGZIP() []byte {+ file_store_vcs_proto_rawDescOnce.Do(func() {+ file_store_vcs_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_vcs_proto_rawDescData)+ })+ return file_store_vcs_proto_rawDescData+}++var file_store_vcs_proto_enumTypes = make([]protoimpl.EnumInfo, 1)+var file_store_vcs_proto_msgTypes = make([]protoimpl.MessageInfo, 3)+var file_store_vcs_proto_goTypes = []interface{}{+ (VcsType)(0), // 0: bytebase.store.VcsType+ (*PushEvent)(nil), // 1: bytebase.store.PushEvent+ (*Commit)(nil), // 2: bytebase.store.Commit+ (*FileCommit)(nil), // 3: bytebase.store.FileCommit+}+var file_store_vcs_proto_depIdxs = []int32{+ 0, // 0: bytebase.store.PushEvent.vcs_type:type_name -> bytebase.store.VcsType+ 2, // 1: bytebase.store.PushEvent.commits:type_name -> bytebase.store.Commit+ 3, // 2: bytebase.store.PushEvent.file_commit:type_name -> bytebase.store.FileCommit+ 3, // [3:3] is the sub-list for method output_type+ 3, // [3:3] is the sub-list for method input_type+ 3, // [3:3] is the sub-list for extension type_name+ 3, // [3:3] is the sub-list for extension extendee+ 0, // [0:3] is the sub-list for field type_name+}++func init() { file_store_vcs_proto_init() }+func file_store_vcs_proto_init() {+ if File_store_vcs_proto != nil {+ return+ }+ if !protoimpl.UnsafeEnabled {+ file_store_vcs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PushEvent); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_store_vcs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Commit); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_store_vcs_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*FileCommit); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ }+ type x struct{}+ out := protoimpl.TypeBuilder{+ File: protoimpl.DescBuilder{+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),+ RawDescriptor: file_store_vcs_proto_rawDesc,+ NumEnums: 1,+ NumMessages: 3,+ NumExtensions: 0,+ NumServices: 0,+ },+ GoTypes: file_store_vcs_proto_goTypes,+ DependencyIndexes: file_store_vcs_proto_depIdxs,+ EnumInfos: file_store_vcs_proto_enumTypes,+ MessageInfos: file_store_vcs_proto_msgTypes,+ }.Build()+ File_store_vcs_proto = out.File+ file_store_vcs_proto_rawDesc = nil+ file_store_vcs_proto_goTypes = nil+ file_store_vcs_proto_depIdxs = nil+}diff --git a/proto/store/vcs.proto b/proto/store/vcs.protonew file mode 100644index 0000000000..cbf8c133c3--- /dev/null+++ b/proto/store/vcs.proto@@ -0,0 +1,49 @@+syntax = "proto3";++package bytebase.store;++option go_package = "generated-go/store";++message PushEvent {+ VcsType vcs_type = 1;+ string base_directory = 2;+ string ref = 3;+ string before = 4;+ string after = 5;+ string repository_id = 6;+ string repository_url = 7;+ string repository_full_path = 8;+ string author_name = 9;+ repeated Commit commits = 10;+ FileCommit file_commit = 11;+}++message Commit {+ string id = 1;+ string title = 2;+ string message = 3;+ int64 created_ts = 4;+ string url = 5;+ string author_name = 6;+ string author_email = 7;+ repeated string added_list = 8;+ repeated string modified_list = 9;+}++message FileCommit {+ string id = 1;+ string title = 2;+ string message = 3;+ int64 created_ts = 4;+ string url = 5;+ string author_name = 6;+ string author_email = 7;+ string added = 8;+}++enum VcsType {+ VCS_TYPE_UNSPECIFIED = 0;+ GITLAB = 1;+ GITHUB = 2;+ BITBUCKET = 3;+}