From 94cdbb54efbfb3a211933b0d2df9109a2d754d80 Mon Sep 17 00:00:00 2001 From: ianhundere <138915+ianhundere@users.noreply.github.com> Date: Sun, 4 Jan 2026 04:33:31 -0800 Subject: [PATCH 1/2] feat(draft+update-file): adds draft capability and update generic files before release. --- .gitignore | 1 + cmd/semantic-release/main.go | 172 +++- pkg/analyzer/commit_analyzer.pb.go | 435 +++------- pkg/analyzer/commit_analyzer_grpc.pb.go | 47 +- pkg/condition/ci_condition.pb.go | 514 +++-------- pkg/condition/ci_condition_grpc.pb.go | 52 +- pkg/config/config.go | 2 + pkg/config/config.pb.go | 311 +++---- pkg/config/config.proto | 1 + pkg/generator/changelog_generator.pb.go | 484 +++-------- pkg/generator/changelog_generator_grpc.pb.go | 47 +- pkg/hooks/hooks.pb.go | 630 ++++---------- pkg/hooks/hooks_grpc.pb.go | 52 +- pkg/provider/provider.pb.go | 856 ++++++------------- pkg/provider/provider.proto | 1 + pkg/provider/provider_grpc.pb.go | 62 +- pkg/semrel/structs.pb.go | 257 ++---- pkg/updater/updater.pb.go | 528 +++--------- pkg/updater/updater_grpc.pb.go | 52 +- 19 files changed, 1518 insertions(+), 2986 deletions(-) diff --git a/.gitignore b/.gitignore index d61442c2..aad7a1d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .envrc test/.npmrc .idea/ +/semantic-release diff --git a/cmd/semantic-release/main.go b/cmd/semantic-release/main.go index 60cd0e16..d2f1ebbd 100644 --- a/cmd/semantic-release/main.go +++ b/cmd/semantic-release/main.go @@ -5,7 +5,9 @@ import ( "fmt" "log" "os" + "os/exec" "os/signal" + "regexp" "strings" "syscall" @@ -78,6 +80,127 @@ func mergeConfigWithDefaults(defaults, conf map[string]string) { } } +func updateFilesBeforeRelease(patterns []string, version string) error { + v, err := semver.NewVersion(version) + if err != nil { + return fmt.Errorf("invalid version: %w", err) + } + + replacements := map[string]string{ + "{{version}}": version, + "{{major}}": fmt.Sprintf("%d", v.Major()), + "{{minor}}": fmt.Sprintf("%d", v.Minor()), + "{{patch}}": fmt.Sprintf("%d", v.Patch()), + } + + for _, pattern := range patterns { + parts := strings.SplitN(pattern, ":", 3) + if len(parts) != 3 { + return fmt.Errorf("invalid pattern format: %s (expected file:regex:template)", pattern) + } + + file := strings.TrimSpace(parts[0]) + regexStr := strings.TrimSpace(parts[1]) + template := parts[2] + if file == "" || regexStr == "" { + return fmt.Errorf("invalid pattern format: %s (expected file:regex:template)", pattern) + } + + for k, v := range replacements { + template = strings.ReplaceAll(template, k, v) + } + + fi, err := os.Stat(file) + if err != nil { + return fmt.Errorf("failed to stat %s: %w", file, err) + } + + content, err := os.ReadFile(file) + if err != nil { + return fmt.Errorf("failed to read %s: %w", file, err) + } + + re, err := regexp.Compile(regexStr) + if err != nil { + return fmt.Errorf("invalid regex in pattern %s: %w", pattern, err) + } + if !re.Match(content) { + return fmt.Errorf("pattern did not match any content in %s (regex=%q)", file, regexStr) + } + + oldContent := string(content) + newContent := re.ReplaceAllString(oldContent, template) + if newContent == oldContent { + logger.Printf("no changes for %s\n", file) + continue + } + + if err := os.WriteFile(file, []byte(newContent), fi.Mode()); err != nil { + return fmt.Errorf("failed to write %s: %w", file, err) + } + + logger.Printf("updated %s\n", file) + } + + return nil +} + +func commitAndPushChanges(files []string, message string, branch string) (string, error) { + branch = strings.TrimPrefix(branch, "refs/heads/") + branch = strings.TrimPrefix(branch, "origin/") + if branch == "" { + return "", fmt.Errorf("branch is empty") + } + + cmd := exec.Command("git", "diff", "--cached", "--quiet") + if err := cmd.Run(); err != nil { + if _, ok := err.(*exec.ExitError); ok { + return "", fmt.Errorf("index has staged changes; refusing to commit update-before changes") + } + return "", fmt.Errorf("failed to check index state: %w", err) + } + + for _, file := range files { + if strings.TrimSpace(file) == "" { + continue + } + cmd := exec.Command("git", "add", "--", file) + if output, err := cmd.CombinedOutput(); err != nil { + return "", fmt.Errorf("git add failed: %s: %w", output, err) + } + } + + cmd = exec.Command("git", "diff", "--cached", "--quiet") + if err := cmd.Run(); err == nil { + cmd = exec.Command("git", "rev-parse", "HEAD") + output, err := cmd.Output() + if err != nil { + return "", fmt.Errorf("failed to get SHA: %w", err) + } + return strings.TrimSpace(string(output)), nil + } else if _, ok := err.(*exec.ExitError); !ok { + return "", fmt.Errorf("failed to check staged diff: %w", err) + } + + cmd = exec.Command("git", "commit", "-m", message) + if output, err := cmd.CombinedOutput(); err != nil { + return "", fmt.Errorf("git commit failed: %s: %w", output, err) + } + + cmd = exec.Command("git", "push", "origin", "HEAD:"+branch) + if output, err := cmd.CombinedOutput(); err != nil { + return "", fmt.Errorf("git push failed: %s: %w", output, err) + } + + cmd = exec.Command("git", "rev-parse", "HEAD") + output, err := cmd.Output() + if err != nil { + return "", fmt.Errorf("failed to get new SHA: %w", err) + } + + return strings.TrimSpace(string(output)), nil +} + //gocyclo:ignore func cliHandler(cmd *cobra.Command, _ []string) { logger.Printf("version: %s\n", SRVERSION) @@ -284,13 +407,60 @@ func cliHandler(cmd *cobra.Command, _ []string) { exitIfError(errors.New("DRY RUN: no release was created"), 0) } - logger.Println("creating release...") + // update files before release if specified + if len(conf.UpdateFilesBefore) > 0 { + logger.Println("updating files before release...") + if err := updateFilesBeforeRelease(conf.UpdateFilesBefore, newVer); err != nil { + exitIfError(err) + } + + filesToCommit := make([]string, 0, len(conf.UpdateFilesBefore)) + for _, pattern := range conf.UpdateFilesBefore { + parts := strings.SplitN(pattern, ":", 3) + if len(parts) == 3 { + filesToCommit = append(filesToCommit, strings.TrimSpace(parts[0])) + } + } + + commitMsg := conf.FilesUpdaterOpts["commit-message"] + if commitMsg == "" { + commitMsg = fmt.Sprintf("chore: bump version to %s", newVer) + } + commitMsg = strings.ReplaceAll(commitMsg, "{{version}}", newVer) + + logger.Println("committing and pushing changes...") + newSHA, err := commitAndPushChanges(filesToCommit, commitMsg, currentBranch) + if err != nil { + exitIfError(err) + } + + currentSha = newSHA + logger.Printf("updated SHA to %s\n", currentSha) + } + + draft := false + // only accept exact "true" string per spec - other values default to false + if draftOpt, ok := conf.ProviderOpts["draft"]; ok { + if draftOpt == "true" { + draft = true + } else { + logger.Printf("warning: draft option value '%s' is not 'true', defaulting to published release\n", draftOpt) + } + } + + if draft { + logger.Println("creating draft release...") + } else { + logger.Println("creating published release...") + } + newRelease := &provider.CreateReleaseConfig{ Changelog: changelogRes, NewVersion: newVer, Prerelease: conf.Prerelease, Branch: currentBranch, SHA: currentSha, + Draft: draft, } exitIfError(prov.CreateRelease(newRelease)) diff --git a/pkg/analyzer/commit_analyzer.pb.go b/pkg/analyzer/commit_analyzer.pb.go index e845185b..1f7ebca5 100644 --- a/pkg/analyzer/commit_analyzer.pb.go +++ b/pkg/analyzer/commit_analyzer.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.11 +// protoc v6.33.1 // source: pkg/analyzer/commit_analyzer.proto package analyzer @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,18 +23,16 @@ const ( ) type CommitAnalyzerInit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CommitAnalyzerInit) Reset() { *x = CommitAnalyzerInit{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitAnalyzerInit) String() string { @@ -44,7 +43,7 @@ func (*CommitAnalyzerInit) ProtoMessage() {} func (x *CommitAnalyzerInit) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -60,18 +59,16 @@ func (*CommitAnalyzerInit) Descriptor() ([]byte, []int) { } type CommitAnalyzerName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CommitAnalyzerName) Reset() { *x = CommitAnalyzerName{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitAnalyzerName) String() string { @@ -82,7 +79,7 @@ func (*CommitAnalyzerName) ProtoMessage() {} func (x *CommitAnalyzerName) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -98,18 +95,16 @@ func (*CommitAnalyzerName) Descriptor() ([]byte, []int) { } type CommitAnalyzerVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CommitAnalyzerVersion) Reset() { *x = CommitAnalyzerVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitAnalyzerVersion) String() string { @@ -120,7 +115,7 @@ func (*CommitAnalyzerVersion) ProtoMessage() {} func (x *CommitAnalyzerVersion) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -136,18 +131,16 @@ func (*CommitAnalyzerVersion) Descriptor() ([]byte, []int) { } type AnalyzeCommits struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AnalyzeCommits) Reset() { *x = AnalyzeCommits{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AnalyzeCommits) String() string { @@ -158,7 +151,7 @@ func (*AnalyzeCommits) ProtoMessage() {} func (x *AnalyzeCommits) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -174,20 +167,17 @@ func (*AnalyzeCommits) Descriptor() ([]byte, []int) { } type CommitAnalyzerInit_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *CommitAnalyzerInit_Request) Reset() { *x = CommitAnalyzerInit_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitAnalyzerInit_Request) String() string { @@ -198,7 +188,7 @@ func (*CommitAnalyzerInit_Request) ProtoMessage() {} func (x *CommitAnalyzerInit_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -221,20 +211,17 @@ func (x *CommitAnalyzerInit_Request) GetConfig() map[string]string { } type CommitAnalyzerInit_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CommitAnalyzerInit_Response) Reset() { *x = CommitAnalyzerInit_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitAnalyzerInit_Response) String() string { @@ -245,7 +232,7 @@ func (*CommitAnalyzerInit_Response) ProtoMessage() {} func (x *CommitAnalyzerInit_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -268,18 +255,16 @@ func (x *CommitAnalyzerInit_Response) GetError() string { } type CommitAnalyzerName_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CommitAnalyzerName_Request) Reset() { *x = CommitAnalyzerName_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitAnalyzerName_Request) String() string { @@ -290,7 +275,7 @@ func (*CommitAnalyzerName_Request) ProtoMessage() {} func (x *CommitAnalyzerName_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -306,20 +291,17 @@ func (*CommitAnalyzerName_Request) Descriptor() ([]byte, []int) { } type CommitAnalyzerName_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CommitAnalyzerName_Response) Reset() { *x = CommitAnalyzerName_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitAnalyzerName_Response) String() string { @@ -330,7 +312,7 @@ func (*CommitAnalyzerName_Response) ProtoMessage() {} func (x *CommitAnalyzerName_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -353,18 +335,16 @@ func (x *CommitAnalyzerName_Response) GetName() string { } type CommitAnalyzerVersion_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CommitAnalyzerVersion_Request) Reset() { *x = CommitAnalyzerVersion_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitAnalyzerVersion_Request) String() string { @@ -375,7 +355,7 @@ func (*CommitAnalyzerVersion_Request) ProtoMessage() {} func (x *CommitAnalyzerVersion_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -391,20 +371,17 @@ func (*CommitAnalyzerVersion_Request) Descriptor() ([]byte, []int) { } type CommitAnalyzerVersion_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CommitAnalyzerVersion_Response) Reset() { *x = CommitAnalyzerVersion_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitAnalyzerVersion_Response) String() string { @@ -415,7 +392,7 @@ func (*CommitAnalyzerVersion_Response) ProtoMessage() {} func (x *CommitAnalyzerVersion_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -438,20 +415,17 @@ func (x *CommitAnalyzerVersion_Response) GetVersion() string { } type AnalyzeCommits_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RawCommits []*semrel.RawCommit `protobuf:"bytes,1,rep,name=raw_commits,json=rawCommits,proto3" json:"raw_commits,omitempty"` unknownFields protoimpl.UnknownFields - - RawCommits []*semrel.RawCommit `protobuf:"bytes,1,rep,name=raw_commits,json=rawCommits,proto3" json:"raw_commits,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AnalyzeCommits_Request) Reset() { *x = AnalyzeCommits_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AnalyzeCommits_Request) String() string { @@ -462,7 +436,7 @@ func (*AnalyzeCommits_Request) ProtoMessage() {} func (x *AnalyzeCommits_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -485,20 +459,17 @@ func (x *AnalyzeCommits_Request) GetRawCommits() []*semrel.RawCommit { } type AnalyzeCommits_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Commits []*semrel.Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` unknownFields protoimpl.UnknownFields - - Commits []*semrel.Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AnalyzeCommits_Response) Reset() { *x = AnalyzeCommits_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AnalyzeCommits_Response) String() string { @@ -509,7 +480,7 @@ func (*AnalyzeCommits_Response) ProtoMessage() {} func (x *AnalyzeCommits_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_analyzer_commit_analyzer_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -533,79 +504,52 @@ func (x *AnalyzeCommits_Response) GetCommits() []*semrel.Commit { var File_pkg_analyzer_commit_analyzer_proto protoreflect.FileDescriptor -var file_pkg_analyzer_commit_analyzer_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x2f, 0x63, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x6d, 0x72, 0x65, 0x6c, - 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbe, - 0x01, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, - 0x72, 0x49, 0x6e, 0x69, 0x74, 0x1a, 0x85, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, - 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x20, 0x0a, - 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, - 0x3f, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, - 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x48, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, - 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x77, 0x0a, 0x0e, 0x41, 0x6e, - 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x1a, 0x36, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x0b, 0x72, 0x61, 0x77, 0x5f, 0x63, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x52, - 0x61, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0a, 0x72, 0x61, 0x77, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x73, 0x1a, 0x2d, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x21, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x07, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x73, 0x32, 0xa6, 0x02, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, - 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x41, 0x0a, 0x04, - 0x49, 0x6e, 0x69, 0x74, 0x12, 0x1b, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, - 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1c, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, - 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x41, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, - 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, - 0x0a, 0x07, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x12, 0x17, 0x2e, 0x41, 0x6e, 0x61, 0x6c, - 0x79, 0x7a, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x43, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x41, 0x5a, 0x3f, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x73, 0x65, - 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x73, - 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, - 0x76, 0x32, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_pkg_analyzer_commit_analyzer_proto_rawDesc = "" + + "\n" + + "\"pkg/analyzer/commit_analyzer.proto\x1a\x18pkg/semrel/structs.proto\"\xbe\x01\n" + + "\x12CommitAnalyzerInit\x1a\x85\x01\n" + + "\aRequest\x12?\n" + + "\x06config\x18\x01 \x03(\v2'.CommitAnalyzerInit.Request.ConfigEntryR\x06config\x1a9\n" + + "\vConfigEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05error\x18\x01 \x01(\tR\x05error\"?\n" + + "\x12CommitAnalyzerName\x1a\t\n" + + "\aRequest\x1a\x1e\n" + + "\bResponse\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"H\n" + + "\x15CommitAnalyzerVersion\x1a\t\n" + + "\aRequest\x1a$\n" + + "\bResponse\x12\x18\n" + + "\aversion\x18\x01 \x01(\tR\aversion\"w\n" + + "\x0eAnalyzeCommits\x1a6\n" + + "\aRequest\x12+\n" + + "\vraw_commits\x18\x01 \x03(\v2\n" + + ".RawCommitR\n" + + "rawCommits\x1a-\n" + + "\bResponse\x12!\n" + + "\acommits\x18\x01 \x03(\v2\a.CommitR\acommits2\xa6\x02\n" + + "\x14CommitAnalyzerPlugin\x12A\n" + + "\x04Init\x12\x1b.CommitAnalyzerInit.Request\x1a\x1c.CommitAnalyzerInit.Response\x12A\n" + + "\x04Name\x12\x1b.CommitAnalyzerName.Request\x1a\x1c.CommitAnalyzerName.Response\x12J\n" + + "\aVersion\x12\x1e.CommitAnalyzerVersion.Request\x1a\x1f.CommitAnalyzerVersion.Response\x12<\n" + + "\aAnalyze\x12\x17.AnalyzeCommits.Request\x1a\x18.AnalyzeCommits.ResponseBAZ?github.com/go-semantic-release/semantic-release/v2/pkg/analyzerb\x06proto3" var ( file_pkg_analyzer_commit_analyzer_proto_rawDescOnce sync.Once - file_pkg_analyzer_commit_analyzer_proto_rawDescData = file_pkg_analyzer_commit_analyzer_proto_rawDesc + file_pkg_analyzer_commit_analyzer_proto_rawDescData []byte ) func file_pkg_analyzer_commit_analyzer_proto_rawDescGZIP() []byte { file_pkg_analyzer_commit_analyzer_proto_rawDescOnce.Do(func() { - file_pkg_analyzer_commit_analyzer_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_analyzer_commit_analyzer_proto_rawDescData) + file_pkg_analyzer_commit_analyzer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_analyzer_commit_analyzer_proto_rawDesc), len(file_pkg_analyzer_commit_analyzer_proto_rawDesc))) }) return file_pkg_analyzer_commit_analyzer_proto_rawDescData } var file_pkg_analyzer_commit_analyzer_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_pkg_analyzer_commit_analyzer_proto_goTypes = []interface{}{ +var file_pkg_analyzer_commit_analyzer_proto_goTypes = []any{ (*CommitAnalyzerInit)(nil), // 0: CommitAnalyzerInit (*CommitAnalyzerName)(nil), // 1: CommitAnalyzerName (*CommitAnalyzerVersion)(nil), // 2: CommitAnalyzerVersion @@ -646,157 +590,11 @@ func file_pkg_analyzer_commit_analyzer_proto_init() { if File_pkg_analyzer_commit_analyzer_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pkg_analyzer_commit_analyzer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitAnalyzerInit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitAnalyzerName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitAnalyzerVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnalyzeCommits); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitAnalyzerInit_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitAnalyzerInit_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitAnalyzerName_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitAnalyzerName_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitAnalyzerVersion_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitAnalyzerVersion_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnalyzeCommits_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_analyzer_commit_analyzer_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnalyzeCommits_Response); 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_pkg_analyzer_commit_analyzer_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_analyzer_commit_analyzer_proto_rawDesc), len(file_pkg_analyzer_commit_analyzer_proto_rawDesc)), NumEnums: 0, NumMessages: 13, NumExtensions: 0, @@ -807,7 +605,6 @@ func file_pkg_analyzer_commit_analyzer_proto_init() { MessageInfos: file_pkg_analyzer_commit_analyzer_proto_msgTypes, }.Build() File_pkg_analyzer_commit_analyzer_proto = out.File - file_pkg_analyzer_commit_analyzer_proto_rawDesc = nil file_pkg_analyzer_commit_analyzer_proto_goTypes = nil file_pkg_analyzer_commit_analyzer_proto_depIdxs = nil } diff --git a/pkg/analyzer/commit_analyzer_grpc.pb.go b/pkg/analyzer/commit_analyzer_grpc.pb.go index 7296fd7f..b325cc93 100644 --- a/pkg/analyzer/commit_analyzer_grpc.pb.go +++ b/pkg/analyzer/commit_analyzer_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.6.0 +// - protoc v6.33.1 // source: pkg/analyzer/commit_analyzer.proto package analyzer @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CommitAnalyzerPlugin_Init_FullMethodName = "/CommitAnalyzerPlugin/Init" @@ -44,8 +44,9 @@ func NewCommitAnalyzerPluginClient(cc grpc.ClientConnInterface) CommitAnalyzerPl } func (c *commitAnalyzerPluginClient) Init(ctx context.Context, in *CommitAnalyzerInit_Request, opts ...grpc.CallOption) (*CommitAnalyzerInit_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommitAnalyzerInit_Response) - err := c.cc.Invoke(ctx, CommitAnalyzerPlugin_Init_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitAnalyzerPlugin_Init_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *commitAnalyzerPluginClient) Init(ctx context.Context, in *CommitAnalyze } func (c *commitAnalyzerPluginClient) Name(ctx context.Context, in *CommitAnalyzerName_Request, opts ...grpc.CallOption) (*CommitAnalyzerName_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommitAnalyzerName_Response) - err := c.cc.Invoke(ctx, CommitAnalyzerPlugin_Name_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitAnalyzerPlugin_Name_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *commitAnalyzerPluginClient) Name(ctx context.Context, in *CommitAnalyze } func (c *commitAnalyzerPluginClient) Version(ctx context.Context, in *CommitAnalyzerVersion_Request, opts ...grpc.CallOption) (*CommitAnalyzerVersion_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommitAnalyzerVersion_Response) - err := c.cc.Invoke(ctx, CommitAnalyzerPlugin_Version_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitAnalyzerPlugin_Version_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *commitAnalyzerPluginClient) Version(ctx context.Context, in *CommitAnal } func (c *commitAnalyzerPluginClient) Analyze(ctx context.Context, in *AnalyzeCommits_Request, opts ...grpc.CallOption) (*AnalyzeCommits_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AnalyzeCommits_Response) - err := c.cc.Invoke(ctx, CommitAnalyzerPlugin_Analyze_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitAnalyzerPlugin_Analyze_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *commitAnalyzerPluginClient) Analyze(ctx context.Context, in *AnalyzeCom // CommitAnalyzerPluginServer is the server API for CommitAnalyzerPlugin service. // All implementations must embed UnimplementedCommitAnalyzerPluginServer -// for forward compatibility +// for forward compatibility. type CommitAnalyzerPluginServer interface { Init(context.Context, *CommitAnalyzerInit_Request) (*CommitAnalyzerInit_Response, error) Name(context.Context, *CommitAnalyzerName_Request) (*CommitAnalyzerName_Response, error) @@ -90,23 +94,27 @@ type CommitAnalyzerPluginServer interface { mustEmbedUnimplementedCommitAnalyzerPluginServer() } -// UnimplementedCommitAnalyzerPluginServer must be embedded to have forward compatible implementations. -type UnimplementedCommitAnalyzerPluginServer struct { -} +// UnimplementedCommitAnalyzerPluginServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCommitAnalyzerPluginServer struct{} func (UnimplementedCommitAnalyzerPluginServer) Init(context.Context, *CommitAnalyzerInit_Request) (*CommitAnalyzerInit_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Init not implemented") + return nil, status.Error(codes.Unimplemented, "method Init not implemented") } func (UnimplementedCommitAnalyzerPluginServer) Name(context.Context, *CommitAnalyzerName_Request) (*CommitAnalyzerName_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Name not implemented") + return nil, status.Error(codes.Unimplemented, "method Name not implemented") } func (UnimplementedCommitAnalyzerPluginServer) Version(context.Context, *CommitAnalyzerVersion_Request) (*CommitAnalyzerVersion_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") + return nil, status.Error(codes.Unimplemented, "method Version not implemented") } func (UnimplementedCommitAnalyzerPluginServer) Analyze(context.Context, *AnalyzeCommits_Request) (*AnalyzeCommits_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Analyze not implemented") + return nil, status.Error(codes.Unimplemented, "method Analyze not implemented") } func (UnimplementedCommitAnalyzerPluginServer) mustEmbedUnimplementedCommitAnalyzerPluginServer() {} +func (UnimplementedCommitAnalyzerPluginServer) testEmbeddedByValue() {} // UnsafeCommitAnalyzerPluginServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CommitAnalyzerPluginServer will @@ -116,6 +124,13 @@ type UnsafeCommitAnalyzerPluginServer interface { } func RegisterCommitAnalyzerPluginServer(s grpc.ServiceRegistrar, srv CommitAnalyzerPluginServer) { + // If the following call panics, it indicates UnimplementedCommitAnalyzerPluginServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CommitAnalyzerPlugin_ServiceDesc, srv) } diff --git a/pkg/condition/ci_condition.pb.go b/pkg/condition/ci_condition.pb.go index a37e4524..fb77b158 100644 --- a/pkg/condition/ci_condition.pb.go +++ b/pkg/condition/ci_condition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.11 +// protoc v6.33.1 // source: pkg/condition/ci_condition.proto package condition @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,18 +22,16 @@ const ( ) type CIName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CIName) Reset() { *x = CIName{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CIName) String() string { @@ -43,7 +42,7 @@ func (*CIName) ProtoMessage() {} func (x *CIName) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -59,18 +58,16 @@ func (*CIName) Descriptor() ([]byte, []int) { } type CIVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CIVersion) Reset() { *x = CIVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CIVersion) String() string { @@ -81,7 +78,7 @@ func (*CIVersion) ProtoMessage() {} func (x *CIVersion) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -97,18 +94,16 @@ func (*CIVersion) Descriptor() ([]byte, []int) { } type RunCondition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RunCondition) Reset() { *x = RunCondition{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RunCondition) String() string { @@ -119,7 +114,7 @@ func (*RunCondition) ProtoMessage() {} func (x *RunCondition) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -135,18 +130,16 @@ func (*RunCondition) Descriptor() ([]byte, []int) { } type GetCurrentBranch struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCurrentBranch) Reset() { *x = GetCurrentBranch{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCurrentBranch) String() string { @@ -157,7 +150,7 @@ func (*GetCurrentBranch) ProtoMessage() {} func (x *GetCurrentBranch) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -173,18 +166,16 @@ func (*GetCurrentBranch) Descriptor() ([]byte, []int) { } type GetCurrentSHA struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCurrentSHA) Reset() { *x = GetCurrentSHA{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCurrentSHA) String() string { @@ -195,7 +186,7 @@ func (*GetCurrentSHA) ProtoMessage() {} func (x *GetCurrentSHA) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -211,18 +202,16 @@ func (*GetCurrentSHA) Descriptor() ([]byte, []int) { } type CIName_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CIName_Request) Reset() { *x = CIName_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CIName_Request) String() string { @@ -233,7 +222,7 @@ func (*CIName_Request) ProtoMessage() {} func (x *CIName_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -249,20 +238,17 @@ func (*CIName_Request) Descriptor() ([]byte, []int) { } type CIName_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CIName_Response) Reset() { *x = CIName_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CIName_Response) String() string { @@ -273,7 +259,7 @@ func (*CIName_Response) ProtoMessage() {} func (x *CIName_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -296,18 +282,16 @@ func (x *CIName_Response) GetName() string { } type CIVersion_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CIVersion_Request) Reset() { *x = CIVersion_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CIVersion_Request) String() string { @@ -318,7 +302,7 @@ func (*CIVersion_Request) ProtoMessage() {} func (x *CIVersion_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -334,20 +318,17 @@ func (*CIVersion_Request) Descriptor() ([]byte, []int) { } type CIVersion_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CIVersion_Response) Reset() { *x = CIVersion_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CIVersion_Response) String() string { @@ -358,7 +339,7 @@ func (*CIVersion_Response) ProtoMessage() {} func (x *CIVersion_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -381,20 +362,17 @@ func (x *CIVersion_Response) GetVersion() string { } type RunCondition_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value map[string]string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Value map[string]string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *RunCondition_Request) Reset() { *x = RunCondition_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RunCondition_Request) String() string { @@ -405,7 +383,7 @@ func (*RunCondition_Request) ProtoMessage() {} func (x *RunCondition_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -428,20 +406,17 @@ func (x *RunCondition_Request) GetValue() map[string]string { } type RunCondition_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RunCondition_Response) Reset() { *x = RunCondition_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RunCondition_Response) String() string { @@ -452,7 +427,7 @@ func (*RunCondition_Response) ProtoMessage() {} func (x *RunCondition_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -475,18 +450,16 @@ func (x *RunCondition_Response) GetError() string { } type GetCurrentBranch_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCurrentBranch_Request) Reset() { *x = GetCurrentBranch_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCurrentBranch_Request) String() string { @@ -497,7 +470,7 @@ func (*GetCurrentBranch_Request) ProtoMessage() {} func (x *GetCurrentBranch_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -513,20 +486,17 @@ func (*GetCurrentBranch_Request) Descriptor() ([]byte, []int) { } type GetCurrentBranch_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCurrentBranch_Response) Reset() { *x = GetCurrentBranch_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCurrentBranch_Response) String() string { @@ -537,7 +507,7 @@ func (*GetCurrentBranch_Response) ProtoMessage() {} func (x *GetCurrentBranch_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -560,18 +530,16 @@ func (x *GetCurrentBranch_Response) GetValue() string { } type GetCurrentSHA_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCurrentSHA_Request) Reset() { *x = GetCurrentSHA_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCurrentSHA_Request) String() string { @@ -582,7 +550,7 @@ func (*GetCurrentSHA_Request) ProtoMessage() {} func (x *GetCurrentSHA_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -598,20 +566,17 @@ func (*GetCurrentSHA_Request) Descriptor() ([]byte, []int) { } type GetCurrentSHA_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCurrentSHA_Response) Reset() { *x = GetCurrentSHA_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_condition_ci_condition_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_condition_ci_condition_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCurrentSHA_Response) String() string { @@ -622,7 +587,7 @@ func (*GetCurrentSHA_Response) ProtoMessage() {} func (x *GetCurrentSHA_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_condition_ci_condition_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -646,77 +611,55 @@ func (x *GetCurrentSHA_Response) GetValue() string { var File_pkg_condition_ci_condition_proto protoreflect.FileDescriptor -var file_pkg_condition_ci_condition_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x63, 0x69, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x06, 0x43, 0x49, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x09, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3c, 0x0a, 0x09, 0x43, 0x49, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xad, 0x01, 0x0a, 0x0c, 0x52, 0x75, 0x6e, 0x43, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x7b, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x52, 0x75, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x38, 0x0a, 0x0a, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3c, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x74, 0x53, 0x48, 0x41, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x32, 0xbe, 0x02, 0x0a, 0x11, 0x43, 0x49, 0x43, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x29, 0x0a, 0x04, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x0f, 0x2e, 0x43, 0x49, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x43, 0x49, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x12, 0x2e, 0x43, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x43, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x52, 0x75, 0x6e, - 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x2e, 0x52, 0x75, 0x6e, 0x43, - 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x16, 0x2e, 0x52, 0x75, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, - 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x19, 0x2e, 0x47, - 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x53, 0x48, 0x41, 0x12, 0x16, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x53, 0x48, 0x41, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x47, - 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x48, 0x41, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2d, - 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, - 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x6b, 0x67, 0x2f, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} +const file_pkg_condition_ci_condition_proto_rawDesc = "" + + "\n" + + " pkg/condition/ci_condition.proto\"3\n" + + "\x06CIName\x1a\t\n" + + "\aRequest\x1a\x1e\n" + + "\bResponse\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"<\n" + + "\tCIVersion\x1a\t\n" + + "\aRequest\x1a$\n" + + "\bResponse\x12\x18\n" + + "\aversion\x18\x01 \x01(\tR\aversion\"\xad\x01\n" + + "\fRunCondition\x1a{\n" + + "\aRequest\x126\n" + + "\x05value\x18\x01 \x03(\v2 .RunCondition.Request.ValueEntryR\x05value\x1a8\n" + + "\n" + + "ValueEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05error\x18\x01 \x01(\tR\x05error\"?\n" + + "\x10GetCurrentBranch\x1a\t\n" + + "\aRequest\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05value\x18\x01 \x01(\tR\x05value\"<\n" + + "\rGetCurrentSHA\x1a\t\n" + + "\aRequest\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05value\x18\x01 \x01(\tR\x05value2\xbe\x02\n" + + "\x11CIConditionPlugin\x12)\n" + + "\x04Name\x12\x0f.CIName.Request\x1a\x10.CIName.Response\x122\n" + + "\aVersion\x12\x12.CIVersion.Request\x1a\x13.CIVersion.Response\x12=\n" + + "\fRunCondition\x12\x15.RunCondition.Request\x1a\x16.RunCondition.Response\x12I\n" + + "\x10GetCurrentBranch\x12\x19.GetCurrentBranch.Request\x1a\x1a.GetCurrentBranch.Response\x12@\n" + + "\rGetCurrentSHA\x12\x16.GetCurrentSHA.Request\x1a\x17.GetCurrentSHA.ResponseBBZ@github.com/go-semantic-release/semantic-release/v2/pkg/conditionb\x06proto3" var ( file_pkg_condition_ci_condition_proto_rawDescOnce sync.Once - file_pkg_condition_ci_condition_proto_rawDescData = file_pkg_condition_ci_condition_proto_rawDesc + file_pkg_condition_ci_condition_proto_rawDescData []byte ) func file_pkg_condition_ci_condition_proto_rawDescGZIP() []byte { file_pkg_condition_ci_condition_proto_rawDescOnce.Do(func() { - file_pkg_condition_ci_condition_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_condition_ci_condition_proto_rawDescData) + file_pkg_condition_ci_condition_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_condition_ci_condition_proto_rawDesc), len(file_pkg_condition_ci_condition_proto_rawDesc))) }) return file_pkg_condition_ci_condition_proto_rawDescData } var file_pkg_condition_ci_condition_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_pkg_condition_ci_condition_proto_goTypes = []interface{}{ +var file_pkg_condition_ci_condition_proto_goTypes = []any{ (*CIName)(nil), // 0: CIName (*CIVersion)(nil), // 1: CIVersion (*RunCondition)(nil), // 2: RunCondition @@ -758,193 +701,11 @@ func file_pkg_condition_ci_condition_proto_init() { if File_pkg_condition_ci_condition_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pkg_condition_ci_condition_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CIName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CIVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunCondition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCurrentBranch); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCurrentSHA); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CIName_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CIName_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CIVersion_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CIVersion_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunCondition_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunCondition_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCurrentBranch_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCurrentBranch_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCurrentSHA_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_condition_ci_condition_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCurrentSHA_Response); 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_pkg_condition_ci_condition_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_condition_ci_condition_proto_rawDesc), len(file_pkg_condition_ci_condition_proto_rawDesc)), NumEnums: 0, NumMessages: 16, NumExtensions: 0, @@ -955,7 +716,6 @@ func file_pkg_condition_ci_condition_proto_init() { MessageInfos: file_pkg_condition_ci_condition_proto_msgTypes, }.Build() File_pkg_condition_ci_condition_proto = out.File - file_pkg_condition_ci_condition_proto_rawDesc = nil file_pkg_condition_ci_condition_proto_goTypes = nil file_pkg_condition_ci_condition_proto_depIdxs = nil } diff --git a/pkg/condition/ci_condition_grpc.pb.go b/pkg/condition/ci_condition_grpc.pb.go index 07ec6de7..f46f85d5 100644 --- a/pkg/condition/ci_condition_grpc.pb.go +++ b/pkg/condition/ci_condition_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.6.0 +// - protoc v6.33.1 // source: pkg/condition/ci_condition.proto package condition @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CIConditionPlugin_Name_FullMethodName = "/CIConditionPlugin/Name" @@ -46,8 +46,9 @@ func NewCIConditionPluginClient(cc grpc.ClientConnInterface) CIConditionPluginCl } func (c *cIConditionPluginClient) Name(ctx context.Context, in *CIName_Request, opts ...grpc.CallOption) (*CIName_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CIName_Response) - err := c.cc.Invoke(ctx, CIConditionPlugin_Name_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CIConditionPlugin_Name_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *cIConditionPluginClient) Name(ctx context.Context, in *CIName_Request, } func (c *cIConditionPluginClient) Version(ctx context.Context, in *CIVersion_Request, opts ...grpc.CallOption) (*CIVersion_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CIVersion_Response) - err := c.cc.Invoke(ctx, CIConditionPlugin_Version_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CIConditionPlugin_Version_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *cIConditionPluginClient) Version(ctx context.Context, in *CIVersion_Req } func (c *cIConditionPluginClient) RunCondition(ctx context.Context, in *RunCondition_Request, opts ...grpc.CallOption) (*RunCondition_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RunCondition_Response) - err := c.cc.Invoke(ctx, CIConditionPlugin_RunCondition_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CIConditionPlugin_RunCondition_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *cIConditionPluginClient) RunCondition(ctx context.Context, in *RunCondi } func (c *cIConditionPluginClient) GetCurrentBranch(ctx context.Context, in *GetCurrentBranch_Request, opts ...grpc.CallOption) (*GetCurrentBranch_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCurrentBranch_Response) - err := c.cc.Invoke(ctx, CIConditionPlugin_GetCurrentBranch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CIConditionPlugin_GetCurrentBranch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *cIConditionPluginClient) GetCurrentBranch(ctx context.Context, in *GetC } func (c *cIConditionPluginClient) GetCurrentSHA(ctx context.Context, in *GetCurrentSHA_Request, opts ...grpc.CallOption) (*GetCurrentSHA_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCurrentSHA_Response) - err := c.cc.Invoke(ctx, CIConditionPlugin_GetCurrentSHA_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CIConditionPlugin_GetCurrentSHA_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *cIConditionPluginClient) GetCurrentSHA(ctx context.Context, in *GetCurr // CIConditionPluginServer is the server API for CIConditionPlugin service. // All implementations must embed UnimplementedCIConditionPluginServer -// for forward compatibility +// for forward compatibility. type CIConditionPluginServer interface { Name(context.Context, *CIName_Request) (*CIName_Response, error) Version(context.Context, *CIVersion_Request) (*CIVersion_Response, error) @@ -102,26 +107,30 @@ type CIConditionPluginServer interface { mustEmbedUnimplementedCIConditionPluginServer() } -// UnimplementedCIConditionPluginServer must be embedded to have forward compatible implementations. -type UnimplementedCIConditionPluginServer struct { -} +// UnimplementedCIConditionPluginServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCIConditionPluginServer struct{} func (UnimplementedCIConditionPluginServer) Name(context.Context, *CIName_Request) (*CIName_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Name not implemented") + return nil, status.Error(codes.Unimplemented, "method Name not implemented") } func (UnimplementedCIConditionPluginServer) Version(context.Context, *CIVersion_Request) (*CIVersion_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") + return nil, status.Error(codes.Unimplemented, "method Version not implemented") } func (UnimplementedCIConditionPluginServer) RunCondition(context.Context, *RunCondition_Request) (*RunCondition_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method RunCondition not implemented") + return nil, status.Error(codes.Unimplemented, "method RunCondition not implemented") } func (UnimplementedCIConditionPluginServer) GetCurrentBranch(context.Context, *GetCurrentBranch_Request) (*GetCurrentBranch_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCurrentBranch not implemented") + return nil, status.Error(codes.Unimplemented, "method GetCurrentBranch not implemented") } func (UnimplementedCIConditionPluginServer) GetCurrentSHA(context.Context, *GetCurrentSHA_Request) (*GetCurrentSHA_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCurrentSHA not implemented") + return nil, status.Error(codes.Unimplemented, "method GetCurrentSHA not implemented") } func (UnimplementedCIConditionPluginServer) mustEmbedUnimplementedCIConditionPluginServer() {} +func (UnimplementedCIConditionPluginServer) testEmbeddedByValue() {} // UnsafeCIConditionPluginServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CIConditionPluginServer will @@ -131,6 +140,13 @@ type UnsafeCIConditionPluginServer interface { } func RegisterCIConditionPluginServer(s grpc.ServiceRegistrar, srv CIConditionPluginServer) { + // If the following call panics, it indicates UnimplementedCIConditionPluginServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CIConditionPlugin_ServiceDesc, srv) } diff --git a/pkg/config/config.go b/pkg/config/config.go index 03277474..99a173f9 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -84,6 +84,7 @@ func NewConfig(cmd *cobra.Command) (*Config, error) { HooksPlugins: viper.GetStringSlice("plugins.hooks.names"), HooksOpts: hoOpts, UpdateFiles: mustGetStringArray(cmd, "update"), + UpdateFilesBefore: mustGetStringArray(cmd, "update-before"), Match: mustGetString(cmd, "match"), VersionFile: mustGetBool(cmd, "version-file"), Prerelease: mustGetBool(cmd, "prerelease"), @@ -146,6 +147,7 @@ func SetFlags(cmd *cobra.Command) { cmd.Flags().StringSlice("hooks", []string{}, "hooks plugin names") cmd.Flags().StringArray("hooks-opt", []string{}, "options that are passed to the hooks plugins") cmd.Flags().StringArrayP("update", "u", []string{}, "updates the version of a certain files") + cmd.Flags().StringArray("update-before", []string{}, "updates files before release creation (format: file:regex:template)") cmd.Flags().String("match", "", "only consider tags matching the given glob(7) pattern, excluding the \"refs/tags/\" prefix.") cmd.Flags().String("maintained-version", "", "set the maintained version as base for new releases") cmd.Flags().BoolP("version-file", "f", false, "create a .version file with the new version") diff --git a/pkg/config/config.pb.go b/pkg/config/config.pb.go index 8e635ba9..4e3a5404 100644 --- a/pkg/config/config.pb.go +++ b/pkg/config/config.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.11 +// protoc v6.33.1 // source: pkg/config/config.proto package config @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,51 +23,49 @@ const ( // Config is a complete set of app configuration type Config struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` - ProviderPlugin string `protobuf:"bytes,2,opt,name=provider_plugin,json=providerPlugin,proto3" json:"provider_plugin,omitempty"` - ProviderOpts map[string]string `protobuf:"bytes,3,rep,name=provider_opts,json=providerOpts,proto3" json:"provider_opts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - CommitAnalyzerPlugin string `protobuf:"bytes,4,opt,name=commit_analyzer_plugin,json=commitAnalyzerPlugin,proto3" json:"commit_analyzer_plugin,omitempty"` - CommitAnalyzerOpts map[string]string `protobuf:"bytes,5,rep,name=commit_analyzer_opts,json=commitAnalyzerOpts,proto3" json:"commit_analyzer_opts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - CiConditionPlugin string `protobuf:"bytes,6,opt,name=ci_condition_plugin,json=ciConditionPlugin,proto3" json:"ci_condition_plugin,omitempty"` - CiConditionOpts map[string]string `protobuf:"bytes,7,rep,name=ci_condition_opts,json=ciConditionOpts,proto3" json:"ci_condition_opts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - ChangelogGeneratorPlugin string `protobuf:"bytes,8,opt,name=changelog_generator_plugin,json=changelogGeneratorPlugin,proto3" json:"changelog_generator_plugin,omitempty"` - ChangelogGeneratorOpts map[string]string `protobuf:"bytes,9,rep,name=changelog_generator_opts,json=changelogGeneratorOpts,proto3" json:"changelog_generator_opts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Changelog string `protobuf:"bytes,10,opt,name=changelog,proto3" json:"changelog,omitempty"` - FilesUpdaterPlugins []string `protobuf:"bytes,11,rep,name=files_updater_plugins,json=filesUpdaterPlugins,proto3" json:"files_updater_plugins,omitempty"` - FilesUpdaterOpts map[string]string `protobuf:"bytes,12,rep,name=files_updater_opts,json=filesUpdaterOpts,proto3" json:"files_updater_opts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - HooksPlugins []string `protobuf:"bytes,13,rep,name=hooks_plugins,json=hooksPlugins,proto3" json:"hooks_plugins,omitempty"` - HooksOpts map[string]string `protobuf:"bytes,14,rep,name=hooks_opts,json=hooksOpts,proto3" json:"hooks_opts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - UpdateFiles []string `protobuf:"bytes,15,rep,name=update_files,json=updateFiles,proto3" json:"update_files,omitempty"` - Match string `protobuf:"bytes,16,opt,name=match,proto3" json:"match,omitempty"` - VersionFile bool `protobuf:"varint,17,opt,name=version_file,json=versionFile,proto3" json:"version_file,omitempty"` - Prerelease bool `protobuf:"varint,18,opt,name=prerelease,proto3" json:"prerelease,omitempty"` - Ghr bool `protobuf:"varint,19,opt,name=ghr,proto3" json:"ghr,omitempty"` - NoCi bool `protobuf:"varint,20,opt,name=no_ci,json=noCi,proto3" json:"no_ci,omitempty"` - Dry bool `protobuf:"varint,21,opt,name=dry,proto3" json:"dry,omitempty"` - AllowInitialDevelopmentVersions bool `protobuf:"varint,22,opt,name=allow_initial_development_versions,json=allowInitialDevelopmentVersions,proto3" json:"allow_initial_development_versions,omitempty"` - AllowNoChanges bool `protobuf:"varint,23,opt,name=allow_no_changes,json=allowNoChanges,proto3" json:"allow_no_changes,omitempty"` - ForceBumpPatchVersion bool `protobuf:"varint,24,opt,name=force_bump_patch_version,json=forceBumpPatchVersion,proto3" json:"force_bump_patch_version,omitempty"` - MaintainedVersion string `protobuf:"bytes,25,opt,name=maintained_version,json=maintainedVersion,proto3" json:"maintained_version,omitempty"` - PrependChangelog bool `protobuf:"varint,26,opt,name=prepend_changelog,json=prependChangelog,proto3" json:"prepend_changelog,omitempty"` - DownloadPlugins bool `protobuf:"varint,27,opt,name=download_plugins,json=downloadPlugins,proto3" json:"download_plugins,omitempty"` - ShowProgress bool `protobuf:"varint,28,opt,name=show_progress,json=showProgress,proto3" json:"show_progress,omitempty"` - AllowMaintainedVersionOnDefaultBranch bool `protobuf:"varint,29,opt,name=allow_maintained_version_on_default_branch,json=allowMaintainedVersionOnDefaultBranch,proto3" json:"allow_maintained_version_on_default_branch,omitempty"` - PluginResolver string `protobuf:"bytes,30,opt,name=plugin_resolver,json=pluginResolver,proto3" json:"plugin_resolver,omitempty"` - PluginResolverEndpoint string `protobuf:"bytes,31,opt,name=plugin_resolver_endpoint,json=pluginResolverEndpoint,proto3" json:"plugin_resolver_endpoint,omitempty"` - PluginResolverDisableBatchPrefetch bool `protobuf:"varint,32,opt,name=plugin_resolver_disable_batch_prefetch,json=pluginResolverDisableBatchPrefetch,proto3" json:"plugin_resolver_disable_batch_prefetch,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + ProviderPlugin string `protobuf:"bytes,2,opt,name=provider_plugin,json=providerPlugin,proto3" json:"provider_plugin,omitempty"` + ProviderOpts map[string]string `protobuf:"bytes,3,rep,name=provider_opts,json=providerOpts,proto3" json:"provider_opts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + CommitAnalyzerPlugin string `protobuf:"bytes,4,opt,name=commit_analyzer_plugin,json=commitAnalyzerPlugin,proto3" json:"commit_analyzer_plugin,omitempty"` + CommitAnalyzerOpts map[string]string `protobuf:"bytes,5,rep,name=commit_analyzer_opts,json=commitAnalyzerOpts,proto3" json:"commit_analyzer_opts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + CiConditionPlugin string `protobuf:"bytes,6,opt,name=ci_condition_plugin,json=ciConditionPlugin,proto3" json:"ci_condition_plugin,omitempty"` + CiConditionOpts map[string]string `protobuf:"bytes,7,rep,name=ci_condition_opts,json=ciConditionOpts,proto3" json:"ci_condition_opts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + ChangelogGeneratorPlugin string `protobuf:"bytes,8,opt,name=changelog_generator_plugin,json=changelogGeneratorPlugin,proto3" json:"changelog_generator_plugin,omitempty"` + ChangelogGeneratorOpts map[string]string `protobuf:"bytes,9,rep,name=changelog_generator_opts,json=changelogGeneratorOpts,proto3" json:"changelog_generator_opts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Changelog string `protobuf:"bytes,10,opt,name=changelog,proto3" json:"changelog,omitempty"` + FilesUpdaterPlugins []string `protobuf:"bytes,11,rep,name=files_updater_plugins,json=filesUpdaterPlugins,proto3" json:"files_updater_plugins,omitempty"` + FilesUpdaterOpts map[string]string `protobuf:"bytes,12,rep,name=files_updater_opts,json=filesUpdaterOpts,proto3" json:"files_updater_opts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + HooksPlugins []string `protobuf:"bytes,13,rep,name=hooks_plugins,json=hooksPlugins,proto3" json:"hooks_plugins,omitempty"` + HooksOpts map[string]string `protobuf:"bytes,14,rep,name=hooks_opts,json=hooksOpts,proto3" json:"hooks_opts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + UpdateFiles []string `protobuf:"bytes,15,rep,name=update_files,json=updateFiles,proto3" json:"update_files,omitempty"` + Match string `protobuf:"bytes,16,opt,name=match,proto3" json:"match,omitempty"` + VersionFile bool `protobuf:"varint,17,opt,name=version_file,json=versionFile,proto3" json:"version_file,omitempty"` + Prerelease bool `protobuf:"varint,18,opt,name=prerelease,proto3" json:"prerelease,omitempty"` + Ghr bool `protobuf:"varint,19,opt,name=ghr,proto3" json:"ghr,omitempty"` + NoCi bool `protobuf:"varint,20,opt,name=no_ci,json=noCi,proto3" json:"no_ci,omitempty"` + Dry bool `protobuf:"varint,21,opt,name=dry,proto3" json:"dry,omitempty"` + AllowInitialDevelopmentVersions bool `protobuf:"varint,22,opt,name=allow_initial_development_versions,json=allowInitialDevelopmentVersions,proto3" json:"allow_initial_development_versions,omitempty"` + AllowNoChanges bool `protobuf:"varint,23,opt,name=allow_no_changes,json=allowNoChanges,proto3" json:"allow_no_changes,omitempty"` + ForceBumpPatchVersion bool `protobuf:"varint,24,opt,name=force_bump_patch_version,json=forceBumpPatchVersion,proto3" json:"force_bump_patch_version,omitempty"` + MaintainedVersion string `protobuf:"bytes,25,opt,name=maintained_version,json=maintainedVersion,proto3" json:"maintained_version,omitempty"` + PrependChangelog bool `protobuf:"varint,26,opt,name=prepend_changelog,json=prependChangelog,proto3" json:"prepend_changelog,omitempty"` + DownloadPlugins bool `protobuf:"varint,27,opt,name=download_plugins,json=downloadPlugins,proto3" json:"download_plugins,omitempty"` + ShowProgress bool `protobuf:"varint,28,opt,name=show_progress,json=showProgress,proto3" json:"show_progress,omitempty"` + AllowMaintainedVersionOnDefaultBranch bool `protobuf:"varint,29,opt,name=allow_maintained_version_on_default_branch,json=allowMaintainedVersionOnDefaultBranch,proto3" json:"allow_maintained_version_on_default_branch,omitempty"` + PluginResolver string `protobuf:"bytes,30,opt,name=plugin_resolver,json=pluginResolver,proto3" json:"plugin_resolver,omitempty"` + PluginResolverEndpoint string `protobuf:"bytes,31,opt,name=plugin_resolver_endpoint,json=pluginResolverEndpoint,proto3" json:"plugin_resolver_endpoint,omitempty"` + PluginResolverDisableBatchPrefetch bool `protobuf:"varint,32,opt,name=plugin_resolver_disable_batch_prefetch,json=pluginResolverDisableBatchPrefetch,proto3" json:"plugin_resolver_disable_batch_prefetch,omitempty"` + UpdateFilesBefore []string `protobuf:"bytes,33,rep,name=update_files_before,json=updateFilesBefore,proto3" json:"update_files_before,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Config) Reset() { *x = Config{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_config_config_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_config_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Config) String() string { @@ -77,7 +76,7 @@ func (*Config) ProtoMessage() {} func (x *Config) ProtoReflect() protoreflect.Message { mi := &file_pkg_config_config_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -316,158 +315,89 @@ func (x *Config) GetPluginResolverDisableBatchPrefetch() bool { return false } +func (x *Config) GetUpdateFilesBefore() []string { + if x != nil { + return x.UpdateFilesBefore + } + return nil +} + var File_pkg_config_config_proto protoreflect.FileDescriptor -var file_pkg_config_config_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x0f, 0x0a, 0x06, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x12, 0x3e, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, - 0x6f, 0x70, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4f, - 0x70, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x61, 0x6e, - 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, - 0x7a, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x51, 0x0a, 0x14, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x5f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x74, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x4f, - 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, - 0x63, 0x69, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x69, 0x43, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x48, 0x0a, 0x11, - 0x63, 0x69, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x70, 0x74, - 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x43, 0x69, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x63, 0x69, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x1a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x6c, 0x6f, 0x67, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x12, 0x5d, 0x0a, 0x18, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, - 0x67, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x6f, 0x70, 0x74, 0x73, - 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x16, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4f, - 0x70, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, - 0x67, 0x12, 0x32, 0x0a, 0x15, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x72, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x13, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x4b, 0x0a, 0x12, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x5f, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x73, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x4f, 0x70, - 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x5f, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x68, 0x6f, 0x6f, 0x6b, 0x73, - 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x0a, 0x68, 0x6f, 0x6f, 0x6b, 0x73, - 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x09, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x21, - 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x0f, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, - 0x65, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, - 0x70, 0x72, 0x65, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x68, - 0x72, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x67, 0x68, 0x72, 0x12, 0x13, 0x0a, 0x05, - 0x6e, 0x6f, 0x5f, 0x63, 0x69, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6e, 0x6f, 0x43, - 0x69, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x72, 0x79, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, - 0x64, 0x72, 0x79, 0x12, 0x4b, 0x0a, 0x22, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x6d, 0x65, 0x6e, 0x74, - 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x1f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x44, 0x65, 0x76, - 0x65, 0x6c, 0x6f, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x28, 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x6f, 0x5f, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, - 0x77, 0x4e, 0x6f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x66, 0x6f, - 0x72, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x6d, 0x70, 0x5f, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x18, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x66, 0x6f, - 0x72, 0x63, 0x65, 0x42, 0x75, 0x6d, 0x70, 0x50, 0x61, 0x74, 0x63, 0x68, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, - 0x64, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x11, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x5f, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x70, - 0x72, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12, - 0x29, 0x0a, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x73, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, - 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x68, - 0x6f, 0x77, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x1c, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x59, 0x0a, 0x2a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x6e, 0x5f, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x1d, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x25, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x6e, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x18, 0x1e, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, - 0x76, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x18, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x72, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, - 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x52, 0x0a, - 0x26, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x70, - 0x72, 0x65, 0x66, 0x65, 0x74, 0x63, 0x68, 0x18, 0x20, 0x20, 0x01, 0x28, 0x08, 0x52, 0x22, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x44, 0x69, 0x73, - 0x61, 0x62, 0x6c, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x66, 0x65, 0x74, 0x63, - 0x68, 0x1a, 0x3f, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4f, 0x70, 0x74, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x1a, 0x45, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x41, 0x6e, 0x61, 0x6c, - 0x79, 0x7a, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x42, 0x0a, 0x14, 0x43, 0x69, 0x43, - 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x49, 0x0a, - 0x1b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x43, 0x0a, 0x15, 0x46, 0x69, 0x6c, 0x65, - 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3c, 0x0a, - 0x0e, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x3f, 0x5a, 0x3d, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x73, 0x65, 0x6d, - 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x73, 0x65, - 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x76, - 0x32, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} +const file_pkg_config_config_proto_rawDesc = "" + + "\n" + + "\x17pkg/config/config.proto\"\x8f\x10\n" + + "\x06Config\x12\x14\n" + + "\x05token\x18\x01 \x01(\tR\x05token\x12'\n" + + "\x0fprovider_plugin\x18\x02 \x01(\tR\x0eproviderPlugin\x12>\n" + + "\rprovider_opts\x18\x03 \x03(\v2\x19.Config.ProviderOptsEntryR\fproviderOpts\x124\n" + + "\x16commit_analyzer_plugin\x18\x04 \x01(\tR\x14commitAnalyzerPlugin\x12Q\n" + + "\x14commit_analyzer_opts\x18\x05 \x03(\v2\x1f.Config.CommitAnalyzerOptsEntryR\x12commitAnalyzerOpts\x12.\n" + + "\x13ci_condition_plugin\x18\x06 \x01(\tR\x11ciConditionPlugin\x12H\n" + + "\x11ci_condition_opts\x18\a \x03(\v2\x1c.Config.CiConditionOptsEntryR\x0fciConditionOpts\x12<\n" + + "\x1achangelog_generator_plugin\x18\b \x01(\tR\x18changelogGeneratorPlugin\x12]\n" + + "\x18changelog_generator_opts\x18\t \x03(\v2#.Config.ChangelogGeneratorOptsEntryR\x16changelogGeneratorOpts\x12\x1c\n" + + "\tchangelog\x18\n" + + " \x01(\tR\tchangelog\x122\n" + + "\x15files_updater_plugins\x18\v \x03(\tR\x13filesUpdaterPlugins\x12K\n" + + "\x12files_updater_opts\x18\f \x03(\v2\x1d.Config.FilesUpdaterOptsEntryR\x10filesUpdaterOpts\x12#\n" + + "\rhooks_plugins\x18\r \x03(\tR\fhooksPlugins\x125\n" + + "\n" + + "hooks_opts\x18\x0e \x03(\v2\x16.Config.HooksOptsEntryR\thooksOpts\x12!\n" + + "\fupdate_files\x18\x0f \x03(\tR\vupdateFiles\x12\x14\n" + + "\x05match\x18\x10 \x01(\tR\x05match\x12!\n" + + "\fversion_file\x18\x11 \x01(\bR\vversionFile\x12\x1e\n" + + "\n" + + "prerelease\x18\x12 \x01(\bR\n" + + "prerelease\x12\x10\n" + + "\x03ghr\x18\x13 \x01(\bR\x03ghr\x12\x13\n" + + "\x05no_ci\x18\x14 \x01(\bR\x04noCi\x12\x10\n" + + "\x03dry\x18\x15 \x01(\bR\x03dry\x12K\n" + + "\"allow_initial_development_versions\x18\x16 \x01(\bR\x1fallowInitialDevelopmentVersions\x12(\n" + + "\x10allow_no_changes\x18\x17 \x01(\bR\x0eallowNoChanges\x127\n" + + "\x18force_bump_patch_version\x18\x18 \x01(\bR\x15forceBumpPatchVersion\x12-\n" + + "\x12maintained_version\x18\x19 \x01(\tR\x11maintainedVersion\x12+\n" + + "\x11prepend_changelog\x18\x1a \x01(\bR\x10prependChangelog\x12)\n" + + "\x10download_plugins\x18\x1b \x01(\bR\x0fdownloadPlugins\x12#\n" + + "\rshow_progress\x18\x1c \x01(\bR\fshowProgress\x12Y\n" + + "*allow_maintained_version_on_default_branch\x18\x1d \x01(\bR%allowMaintainedVersionOnDefaultBranch\x12'\n" + + "\x0fplugin_resolver\x18\x1e \x01(\tR\x0epluginResolver\x128\n" + + "\x18plugin_resolver_endpoint\x18\x1f \x01(\tR\x16pluginResolverEndpoint\x12R\n" + + "&plugin_resolver_disable_batch_prefetch\x18 \x01(\bR\"pluginResolverDisableBatchPrefetch\x12.\n" + + "\x13update_files_before\x18! \x03(\tR\x11updateFilesBefore\x1a?\n" + + "\x11ProviderOptsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aE\n" + + "\x17CommitAnalyzerOptsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aB\n" + + "\x14CiConditionOptsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aI\n" + + "\x1bChangelogGeneratorOptsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aC\n" + + "\x15FilesUpdaterOptsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a<\n" + + "\x0eHooksOptsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B?Z=github.com/go-semantic-release/semantic-release/v2/pkg/configb\x06proto3" var ( file_pkg_config_config_proto_rawDescOnce sync.Once - file_pkg_config_config_proto_rawDescData = file_pkg_config_config_proto_rawDesc + file_pkg_config_config_proto_rawDescData []byte ) func file_pkg_config_config_proto_rawDescGZIP() []byte { file_pkg_config_config_proto_rawDescOnce.Do(func() { - file_pkg_config_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_config_config_proto_rawDescData) + file_pkg_config_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_config_config_proto_rawDesc), len(file_pkg_config_config_proto_rawDesc))) }) return file_pkg_config_config_proto_rawDescData } var file_pkg_config_config_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_pkg_config_config_proto_goTypes = []interface{}{ +var file_pkg_config_config_proto_goTypes = []any{ (*Config)(nil), // 0: Config nil, // 1: Config.ProviderOptsEntry nil, // 2: Config.CommitAnalyzerOptsEntry @@ -495,25 +425,11 @@ func file_pkg_config_config_proto_init() { if File_pkg_config_config_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pkg_config_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Config); 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_pkg_config_config_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_config_config_proto_rawDesc), len(file_pkg_config_config_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, @@ -524,7 +440,6 @@ func file_pkg_config_config_proto_init() { MessageInfos: file_pkg_config_config_proto_msgTypes, }.Build() File_pkg_config_config_proto = out.File - file_pkg_config_config_proto_rawDesc = nil file_pkg_config_config_proto_goTypes = nil file_pkg_config_config_proto_depIdxs = nil } diff --git a/pkg/config/config.proto b/pkg/config/config.proto index 61cbeba8..4a6ba035 100644 --- a/pkg/config/config.proto +++ b/pkg/config/config.proto @@ -35,4 +35,5 @@ message Config { string plugin_resolver = 30; string plugin_resolver_endpoint = 31; bool plugin_resolver_disable_batch_prefetch = 32; + repeated string update_files_before = 33; } diff --git a/pkg/generator/changelog_generator.pb.go b/pkg/generator/changelog_generator.pb.go index 1d2428c0..530b6682 100644 --- a/pkg/generator/changelog_generator.pb.go +++ b/pkg/generator/changelog_generator.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.11 +// protoc v6.33.1 // source: pkg/generator/changelog_generator.proto package generator @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,18 +23,16 @@ const ( ) type ChangelogGeneratorInit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorInit) Reset() { *x = ChangelogGeneratorInit{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorInit) String() string { @@ -44,7 +43,7 @@ func (*ChangelogGeneratorInit) ProtoMessage() {} func (x *ChangelogGeneratorInit) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -60,18 +59,16 @@ func (*ChangelogGeneratorInit) Descriptor() ([]byte, []int) { } type ChangelogGeneratorName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorName) Reset() { *x = ChangelogGeneratorName{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorName) String() string { @@ -82,7 +79,7 @@ func (*ChangelogGeneratorName) ProtoMessage() {} func (x *ChangelogGeneratorName) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -98,18 +95,16 @@ func (*ChangelogGeneratorName) Descriptor() ([]byte, []int) { } type ChangelogGeneratorVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorVersion) Reset() { *x = ChangelogGeneratorVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorVersion) String() string { @@ -120,7 +115,7 @@ func (*ChangelogGeneratorVersion) ProtoMessage() {} func (x *ChangelogGeneratorVersion) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -136,22 +131,19 @@ func (*ChangelogGeneratorVersion) Descriptor() ([]byte, []int) { } type ChangelogGeneratorConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Commits []*semrel.Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` + LatestRelease *semrel.Release `protobuf:"bytes,2,opt,name=latest_release,json=latestRelease,proto3" json:"latest_release,omitempty"` + NewVersion string `protobuf:"bytes,3,opt,name=new_version,json=newVersion,proto3" json:"new_version,omitempty"` unknownFields protoimpl.UnknownFields - - Commits []*semrel.Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` - LatestRelease *semrel.Release `protobuf:"bytes,2,opt,name=latest_release,json=latestRelease,proto3" json:"latest_release,omitempty"` - NewVersion string `protobuf:"bytes,3,opt,name=new_version,json=newVersion,proto3" json:"new_version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorConfig) Reset() { *x = ChangelogGeneratorConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorConfig) String() string { @@ -162,7 +154,7 @@ func (*ChangelogGeneratorConfig) ProtoMessage() {} func (x *ChangelogGeneratorConfig) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -199,18 +191,16 @@ func (x *ChangelogGeneratorConfig) GetNewVersion() string { } type GenerateChangelog struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GenerateChangelog) Reset() { *x = GenerateChangelog{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenerateChangelog) String() string { @@ -221,7 +211,7 @@ func (*GenerateChangelog) ProtoMessage() {} func (x *GenerateChangelog) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -237,20 +227,17 @@ func (*GenerateChangelog) Descriptor() ([]byte, []int) { } type ChangelogGeneratorInit_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorInit_Request) Reset() { *x = ChangelogGeneratorInit_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorInit_Request) String() string { @@ -261,7 +248,7 @@ func (*ChangelogGeneratorInit_Request) ProtoMessage() {} func (x *ChangelogGeneratorInit_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -284,20 +271,17 @@ func (x *ChangelogGeneratorInit_Request) GetConfig() map[string]string { } type ChangelogGeneratorInit_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorInit_Response) Reset() { *x = ChangelogGeneratorInit_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorInit_Response) String() string { @@ -308,7 +292,7 @@ func (*ChangelogGeneratorInit_Response) ProtoMessage() {} func (x *ChangelogGeneratorInit_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -331,18 +315,16 @@ func (x *ChangelogGeneratorInit_Response) GetError() string { } type ChangelogGeneratorName_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorName_Request) Reset() { *x = ChangelogGeneratorName_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorName_Request) String() string { @@ -353,7 +335,7 @@ func (*ChangelogGeneratorName_Request) ProtoMessage() {} func (x *ChangelogGeneratorName_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -369,20 +351,17 @@ func (*ChangelogGeneratorName_Request) Descriptor() ([]byte, []int) { } type ChangelogGeneratorName_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorName_Response) Reset() { *x = ChangelogGeneratorName_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorName_Response) String() string { @@ -393,7 +372,7 @@ func (*ChangelogGeneratorName_Response) ProtoMessage() {} func (x *ChangelogGeneratorName_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -416,18 +395,16 @@ func (x *ChangelogGeneratorName_Response) GetName() string { } type ChangelogGeneratorVersion_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorVersion_Request) Reset() { *x = ChangelogGeneratorVersion_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorVersion_Request) String() string { @@ -438,7 +415,7 @@ func (*ChangelogGeneratorVersion_Request) ProtoMessage() {} func (x *ChangelogGeneratorVersion_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -454,20 +431,17 @@ func (*ChangelogGeneratorVersion_Request) Descriptor() ([]byte, []int) { } type ChangelogGeneratorVersion_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChangelogGeneratorVersion_Response) Reset() { *x = ChangelogGeneratorVersion_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangelogGeneratorVersion_Response) String() string { @@ -478,7 +452,7 @@ func (*ChangelogGeneratorVersion_Response) ProtoMessage() {} func (x *ChangelogGeneratorVersion_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -501,20 +475,17 @@ func (x *ChangelogGeneratorVersion_Response) GetVersion() string { } type GenerateChangelog_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *ChangelogGeneratorConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *ChangelogGeneratorConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GenerateChangelog_Request) Reset() { *x = GenerateChangelog_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenerateChangelog_Request) String() string { @@ -525,7 +496,7 @@ func (*GenerateChangelog_Request) ProtoMessage() {} func (x *GenerateChangelog_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -548,20 +519,17 @@ func (x *GenerateChangelog_Request) GetConfig() *ChangelogGeneratorConfig { } type GenerateChangelog_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Changelog string `protobuf:"bytes,1,opt,name=changelog,proto3" json:"changelog,omitempty"` unknownFields protoimpl.UnknownFields - - Changelog string `protobuf:"bytes,1,opt,name=changelog,proto3" json:"changelog,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GenerateChangelog_Response) Reset() { *x = GenerateChangelog_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_generator_changelog_generator_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_generator_changelog_generator_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenerateChangelog_Response) String() string { @@ -572,7 +540,7 @@ func (*GenerateChangelog_Response) ProtoMessage() {} func (x *GenerateChangelog_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_generator_changelog_generator_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -596,92 +564,55 @@ func (x *GenerateChangelog_Response) GetChangelog() string { var File_pkg_generator_changelog_generator_proto protoreflect.FileDescriptor -var file_pkg_generator_changelog_generator_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2f, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x70, 0x6b, 0x67, 0x2f, 0x73, - 0x65, 0x6d, 0x72, 0x65, 0x6c, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xc6, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, - 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x1a, 0x89, - 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, - 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, - 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x43, 0x0a, 0x16, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x22, 0x4c, 0x0a, 0x19, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x09, - 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x0a, 0x08, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x8f, 0x01, 0x0a, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x07, - 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, - 0x2f, 0x0a, 0x0e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, - 0x65, 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x22, 0x7b, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x1a, 0x3c, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x31, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x28, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x32, 0xc9, - 0x02, 0x0a, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x49, 0x0a, 0x04, 0x49, - 0x6e, 0x69, 0x74, 0x12, 0x1f, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, - 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x20, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x52, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x23, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x08, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x12, 0x1a, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, - 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x73, 0x65, 0x6d, 0x61, - 0x6e, 0x74, 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x73, 0x65, 0x6d, - 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x32, - 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_pkg_generator_changelog_generator_proto_rawDesc = "" + + "\n" + + "'pkg/generator/changelog_generator.proto\x1a\x18pkg/semrel/structs.proto\"\xc6\x01\n" + + "\x16ChangelogGeneratorInit\x1a\x89\x01\n" + + "\aRequest\x12C\n" + + "\x06config\x18\x01 \x03(\v2+.ChangelogGeneratorInit.Request.ConfigEntryR\x06config\x1a9\n" + + "\vConfigEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05error\x18\x01 \x01(\tR\x05error\"C\n" + + "\x16ChangelogGeneratorName\x1a\t\n" + + "\aRequest\x1a\x1e\n" + + "\bResponse\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"L\n" + + "\x19ChangelogGeneratorVersion\x1a\t\n" + + "\aRequest\x1a$\n" + + "\bResponse\x12\x18\n" + + "\aversion\x18\x01 \x01(\tR\aversion\"\x8f\x01\n" + + "\x18ChangelogGeneratorConfig\x12!\n" + + "\acommits\x18\x01 \x03(\v2\a.CommitR\acommits\x12/\n" + + "\x0elatest_release\x18\x02 \x01(\v2\b.ReleaseR\rlatestRelease\x12\x1f\n" + + "\vnew_version\x18\x03 \x01(\tR\n" + + "newVersion\"{\n" + + "\x11GenerateChangelog\x1a<\n" + + "\aRequest\x121\n" + + "\x06config\x18\x01 \x01(\v2\x19.ChangelogGeneratorConfigR\x06config\x1a(\n" + + "\bResponse\x12\x1c\n" + + "\tchangelog\x18\x01 \x01(\tR\tchangelog2\xc9\x02\n" + + "\x18ChangelogGeneratorPlugin\x12I\n" + + "\x04Init\x12\x1f.ChangelogGeneratorInit.Request\x1a .ChangelogGeneratorInit.Response\x12I\n" + + "\x04Name\x12\x1f.ChangelogGeneratorName.Request\x1a .ChangelogGeneratorName.Response\x12R\n" + + "\aVersion\x12\".ChangelogGeneratorVersion.Request\x1a#.ChangelogGeneratorVersion.Response\x12C\n" + + "\bGenerate\x12\x1a.GenerateChangelog.Request\x1a\x1b.GenerateChangelog.ResponseBBZ@github.com/go-semantic-release/semantic-release/v2/pkg/generatorb\x06proto3" var ( file_pkg_generator_changelog_generator_proto_rawDescOnce sync.Once - file_pkg_generator_changelog_generator_proto_rawDescData = file_pkg_generator_changelog_generator_proto_rawDesc + file_pkg_generator_changelog_generator_proto_rawDescData []byte ) func file_pkg_generator_changelog_generator_proto_rawDescGZIP() []byte { file_pkg_generator_changelog_generator_proto_rawDescOnce.Do(func() { - file_pkg_generator_changelog_generator_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_generator_changelog_generator_proto_rawDescData) + file_pkg_generator_changelog_generator_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_generator_changelog_generator_proto_rawDesc), len(file_pkg_generator_changelog_generator_proto_rawDesc))) }) return file_pkg_generator_changelog_generator_proto_rawDescData } var file_pkg_generator_changelog_generator_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_pkg_generator_changelog_generator_proto_goTypes = []interface{}{ +var file_pkg_generator_changelog_generator_proto_goTypes = []any{ (*ChangelogGeneratorInit)(nil), // 0: ChangelogGeneratorInit (*ChangelogGeneratorName)(nil), // 1: ChangelogGeneratorName (*ChangelogGeneratorVersion)(nil), // 2: ChangelogGeneratorVersion @@ -724,169 +655,11 @@ func file_pkg_generator_changelog_generator_proto_init() { if File_pkg_generator_changelog_generator_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pkg_generator_changelog_generator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorInit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateChangelog); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorInit_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorInit_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorName_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorName_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorVersion_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogGeneratorVersion_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateChangelog_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_generator_changelog_generator_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateChangelog_Response); 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_pkg_generator_changelog_generator_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_generator_changelog_generator_proto_rawDesc), len(file_pkg_generator_changelog_generator_proto_rawDesc)), NumEnums: 0, NumMessages: 14, NumExtensions: 0, @@ -897,7 +670,6 @@ func file_pkg_generator_changelog_generator_proto_init() { MessageInfos: file_pkg_generator_changelog_generator_proto_msgTypes, }.Build() File_pkg_generator_changelog_generator_proto = out.File - file_pkg_generator_changelog_generator_proto_rawDesc = nil file_pkg_generator_changelog_generator_proto_goTypes = nil file_pkg_generator_changelog_generator_proto_depIdxs = nil } diff --git a/pkg/generator/changelog_generator_grpc.pb.go b/pkg/generator/changelog_generator_grpc.pb.go index fb76f8e1..5f327f97 100644 --- a/pkg/generator/changelog_generator_grpc.pb.go +++ b/pkg/generator/changelog_generator_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.6.0 +// - protoc v6.33.1 // source: pkg/generator/changelog_generator.proto package generator @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ChangelogGeneratorPlugin_Init_FullMethodName = "/ChangelogGeneratorPlugin/Init" @@ -44,8 +44,9 @@ func NewChangelogGeneratorPluginClient(cc grpc.ClientConnInterface) ChangelogGen } func (c *changelogGeneratorPluginClient) Init(ctx context.Context, in *ChangelogGeneratorInit_Request, opts ...grpc.CallOption) (*ChangelogGeneratorInit_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangelogGeneratorInit_Response) - err := c.cc.Invoke(ctx, ChangelogGeneratorPlugin_Init_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ChangelogGeneratorPlugin_Init_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *changelogGeneratorPluginClient) Init(ctx context.Context, in *Changelog } func (c *changelogGeneratorPluginClient) Name(ctx context.Context, in *ChangelogGeneratorName_Request, opts ...grpc.CallOption) (*ChangelogGeneratorName_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangelogGeneratorName_Response) - err := c.cc.Invoke(ctx, ChangelogGeneratorPlugin_Name_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ChangelogGeneratorPlugin_Name_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *changelogGeneratorPluginClient) Name(ctx context.Context, in *Changelog } func (c *changelogGeneratorPluginClient) Version(ctx context.Context, in *ChangelogGeneratorVersion_Request, opts ...grpc.CallOption) (*ChangelogGeneratorVersion_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangelogGeneratorVersion_Response) - err := c.cc.Invoke(ctx, ChangelogGeneratorPlugin_Version_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ChangelogGeneratorPlugin_Version_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *changelogGeneratorPluginClient) Version(ctx context.Context, in *Change } func (c *changelogGeneratorPluginClient) Generate(ctx context.Context, in *GenerateChangelog_Request, opts ...grpc.CallOption) (*GenerateChangelog_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GenerateChangelog_Response) - err := c.cc.Invoke(ctx, ChangelogGeneratorPlugin_Generate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ChangelogGeneratorPlugin_Generate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *changelogGeneratorPluginClient) Generate(ctx context.Context, in *Gener // ChangelogGeneratorPluginServer is the server API for ChangelogGeneratorPlugin service. // All implementations must embed UnimplementedChangelogGeneratorPluginServer -// for forward compatibility +// for forward compatibility. type ChangelogGeneratorPluginServer interface { Init(context.Context, *ChangelogGeneratorInit_Request) (*ChangelogGeneratorInit_Response, error) Name(context.Context, *ChangelogGeneratorName_Request) (*ChangelogGeneratorName_Response, error) @@ -90,24 +94,28 @@ type ChangelogGeneratorPluginServer interface { mustEmbedUnimplementedChangelogGeneratorPluginServer() } -// UnimplementedChangelogGeneratorPluginServer must be embedded to have forward compatible implementations. -type UnimplementedChangelogGeneratorPluginServer struct { -} +// UnimplementedChangelogGeneratorPluginServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedChangelogGeneratorPluginServer struct{} func (UnimplementedChangelogGeneratorPluginServer) Init(context.Context, *ChangelogGeneratorInit_Request) (*ChangelogGeneratorInit_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Init not implemented") + return nil, status.Error(codes.Unimplemented, "method Init not implemented") } func (UnimplementedChangelogGeneratorPluginServer) Name(context.Context, *ChangelogGeneratorName_Request) (*ChangelogGeneratorName_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Name not implemented") + return nil, status.Error(codes.Unimplemented, "method Name not implemented") } func (UnimplementedChangelogGeneratorPluginServer) Version(context.Context, *ChangelogGeneratorVersion_Request) (*ChangelogGeneratorVersion_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") + return nil, status.Error(codes.Unimplemented, "method Version not implemented") } func (UnimplementedChangelogGeneratorPluginServer) Generate(context.Context, *GenerateChangelog_Request) (*GenerateChangelog_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Generate not implemented") + return nil, status.Error(codes.Unimplemented, "method Generate not implemented") } func (UnimplementedChangelogGeneratorPluginServer) mustEmbedUnimplementedChangelogGeneratorPluginServer() { } +func (UnimplementedChangelogGeneratorPluginServer) testEmbeddedByValue() {} // UnsafeChangelogGeneratorPluginServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ChangelogGeneratorPluginServer will @@ -117,6 +125,13 @@ type UnsafeChangelogGeneratorPluginServer interface { } func RegisterChangelogGeneratorPluginServer(s grpc.ServiceRegistrar, srv ChangelogGeneratorPluginServer) { + // If the following call panics, it indicates UnimplementedChangelogGeneratorPluginServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ChangelogGeneratorPlugin_ServiceDesc, srv) } diff --git a/pkg/hooks/hooks.pb.go b/pkg/hooks/hooks.pb.go index 9f545edb..a571dc46 100644 --- a/pkg/hooks/hooks.pb.go +++ b/pkg/hooks/hooks.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.11 +// protoc v6.33.1 // source: pkg/hooks/hooks.proto package hooks @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -69,18 +70,16 @@ func (NoReleaseReason) EnumDescriptor() ([]byte, []int) { } type HooksInit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HooksInit) Reset() { *x = HooksInit{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HooksInit) String() string { @@ -91,7 +90,7 @@ func (*HooksInit) ProtoMessage() {} func (x *HooksInit) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -107,18 +106,16 @@ func (*HooksInit) Descriptor() ([]byte, []int) { } type HooksName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HooksName) Reset() { *x = HooksName{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HooksName) String() string { @@ -129,7 +126,7 @@ func (*HooksName) ProtoMessage() {} func (x *HooksName) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -145,18 +142,16 @@ func (*HooksName) Descriptor() ([]byte, []int) { } type HooksVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HooksVersion) Reset() { *x = HooksVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HooksVersion) String() string { @@ -167,7 +162,7 @@ func (*HooksVersion) ProtoMessage() {} func (x *HooksVersion) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -183,24 +178,21 @@ func (*HooksVersion) Descriptor() ([]byte, []int) { } type SuccessHookConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Commits []*semrel.Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` + PrevRelease *semrel.Release `protobuf:"bytes,2,opt,name=prev_release,json=prevRelease,proto3" json:"prev_release,omitempty"` + NewRelease *semrel.Release `protobuf:"bytes,3,opt,name=new_release,json=newRelease,proto3" json:"new_release,omitempty"` + Changelog string `protobuf:"bytes,4,opt,name=changelog,proto3" json:"changelog,omitempty"` + RepoInfo *provider.RepositoryInfo `protobuf:"bytes,5,opt,name=repo_info,json=repoInfo,proto3" json:"repo_info,omitempty"` unknownFields protoimpl.UnknownFields - - Commits []*semrel.Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` - PrevRelease *semrel.Release `protobuf:"bytes,2,opt,name=prev_release,json=prevRelease,proto3" json:"prev_release,omitempty"` - NewRelease *semrel.Release `protobuf:"bytes,3,opt,name=new_release,json=newRelease,proto3" json:"new_release,omitempty"` - Changelog string `protobuf:"bytes,4,opt,name=changelog,proto3" json:"changelog,omitempty"` - RepoInfo *provider.RepositoryInfo `protobuf:"bytes,5,opt,name=repo_info,json=repoInfo,proto3" json:"repo_info,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SuccessHookConfig) Reset() { *x = SuccessHookConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SuccessHookConfig) String() string { @@ -211,7 +203,7 @@ func (*SuccessHookConfig) ProtoMessage() {} func (x *SuccessHookConfig) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -262,18 +254,16 @@ func (x *SuccessHookConfig) GetRepoInfo() *provider.RepositoryInfo { } type SuccessHook struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SuccessHook) Reset() { *x = SuccessHook{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SuccessHook) String() string { @@ -284,7 +274,7 @@ func (*SuccessHook) ProtoMessage() {} func (x *SuccessHook) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -300,21 +290,18 @@ func (*SuccessHook) Descriptor() ([]byte, []int) { } type NoReleaseConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Reason NoReleaseReason `protobuf:"varint,1,opt,name=reason,proto3,enum=NoReleaseReason" json:"reason,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Reason NoReleaseReason `protobuf:"varint,1,opt,name=reason,proto3,enum=NoReleaseReason" json:"reason,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NoReleaseConfig) Reset() { *x = NoReleaseConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NoReleaseConfig) String() string { @@ -325,7 +312,7 @@ func (*NoReleaseConfig) ProtoMessage() {} func (x *NoReleaseConfig) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -355,18 +342,16 @@ func (x *NoReleaseConfig) GetMessage() string { } type NoReleaseHook struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NoReleaseHook) Reset() { *x = NoReleaseHook{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NoReleaseHook) String() string { @@ -377,7 +362,7 @@ func (*NoReleaseHook) ProtoMessage() {} func (x *NoReleaseHook) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -393,20 +378,17 @@ func (*NoReleaseHook) Descriptor() ([]byte, []int) { } type HooksInit_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *HooksInit_Request) Reset() { *x = HooksInit_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HooksInit_Request) String() string { @@ -417,7 +399,7 @@ func (*HooksInit_Request) ProtoMessage() {} func (x *HooksInit_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -440,20 +422,17 @@ func (x *HooksInit_Request) GetConfig() map[string]string { } type HooksInit_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HooksInit_Response) Reset() { *x = HooksInit_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HooksInit_Response) String() string { @@ -464,7 +443,7 @@ func (*HooksInit_Response) ProtoMessage() {} func (x *HooksInit_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -487,18 +466,16 @@ func (x *HooksInit_Response) GetError() string { } type HooksName_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HooksName_Request) Reset() { *x = HooksName_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HooksName_Request) String() string { @@ -509,7 +486,7 @@ func (*HooksName_Request) ProtoMessage() {} func (x *HooksName_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -525,20 +502,17 @@ func (*HooksName_Request) Descriptor() ([]byte, []int) { } type HooksName_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HooksName_Response) Reset() { *x = HooksName_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HooksName_Response) String() string { @@ -549,7 +523,7 @@ func (*HooksName_Response) ProtoMessage() {} func (x *HooksName_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -572,18 +546,16 @@ func (x *HooksName_Response) GetName() string { } type HooksVersion_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HooksVersion_Request) Reset() { *x = HooksVersion_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HooksVersion_Request) String() string { @@ -594,7 +566,7 @@ func (*HooksVersion_Request) ProtoMessage() {} func (x *HooksVersion_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -610,20 +582,17 @@ func (*HooksVersion_Request) Descriptor() ([]byte, []int) { } type HooksVersion_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HooksVersion_Response) Reset() { *x = HooksVersion_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HooksVersion_Response) String() string { @@ -634,7 +603,7 @@ func (*HooksVersion_Response) ProtoMessage() {} func (x *HooksVersion_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -657,20 +626,17 @@ func (x *HooksVersion_Response) GetVersion() string { } type SuccessHook_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *SuccessHookConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *SuccessHookConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SuccessHook_Request) Reset() { *x = SuccessHook_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SuccessHook_Request) String() string { @@ -681,7 +647,7 @@ func (*SuccessHook_Request) ProtoMessage() {} func (x *SuccessHook_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -704,20 +670,17 @@ func (x *SuccessHook_Request) GetConfig() *SuccessHookConfig { } type SuccessHook_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SuccessHook_Response) Reset() { *x = SuccessHook_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SuccessHook_Response) String() string { @@ -728,7 +691,7 @@ func (*SuccessHook_Response) ProtoMessage() {} func (x *SuccessHook_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -751,20 +714,17 @@ func (x *SuccessHook_Response) GetError() string { } type NoReleaseHook_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *NoReleaseConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *NoReleaseConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NoReleaseHook_Request) Reset() { *x = NoReleaseHook_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NoReleaseHook_Request) String() string { @@ -775,7 +735,7 @@ func (*NoReleaseHook_Request) ProtoMessage() {} func (x *NoReleaseHook_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -798,20 +758,17 @@ func (x *NoReleaseHook_Request) GetConfig() *NoReleaseConfig { } type NoReleaseHook_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NoReleaseHook_Response) Reset() { *x = NoReleaseHook_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_hooks_hooks_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_hooks_hooks_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NoReleaseHook_Response) String() string { @@ -822,7 +779,7 @@ func (*NoReleaseHook_Response) ProtoMessage() {} func (x *NoReleaseHook_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_hooks_hooks_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -846,106 +803,70 @@ func (x *NoReleaseHook_Response) GetError() string { var File_pkg_hooks_hooks_proto protoreflect.FileDescriptor -var file_pkg_hooks_hooks_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x70, 0x6b, 0x67, 0x2f, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x68, 0x6f, 0x6f, 0x6b, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x6d, - 0x72, 0x65, 0x6c, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1b, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xab, - 0x01, 0x0a, 0x09, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x49, 0x6e, 0x69, 0x74, 0x1a, 0x7c, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x49, - 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, - 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x36, 0x0a, 0x09, - 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x0c, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xda, 0x01, 0x0a, 0x11, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x48, 0x6f, 0x6f, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x07, 0x63, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x2b, - 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0b, - 0x70, 0x72, 0x65, 0x76, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x0b, 0x6e, - 0x65, 0x77, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x08, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x52, - 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x6c, 0x6f, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x6c, 0x6f, 0x67, 0x12, 0x2c, 0x0a, 0x09, 0x72, 0x65, 0x70, 0x6f, 0x5f, 0x69, 0x6e, 0x66, - 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x6f, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x49, 0x6e, - 0x66, 0x6f, 0x22, 0x66, 0x0a, 0x0b, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x6f, 0x6f, - 0x6b, 0x1a, 0x35, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x06, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x53, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x6f, 0x6f, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x55, 0x0a, 0x0f, 0x4e, 0x6f, - 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, - 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, - 0x4e, 0x6f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, - 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x22, 0x66, 0x0a, 0x0d, 0x4e, 0x6f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x48, 0x6f, - 0x6f, 0x6b, 0x1a, 0x33, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, - 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x4e, 0x6f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2a, 0x2f, 0x0a, 0x0f, 0x4e, 0x6f, 0x52, - 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, - 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4e, - 0x4f, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x01, 0x32, 0x9f, 0x02, 0x0a, 0x0b, 0x48, - 0x6f, 0x6f, 0x6b, 0x73, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x49, 0x6e, - 0x69, 0x74, 0x12, 0x12, 0x2e, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x49, 0x6e, - 0x69, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x12, 0x2e, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x4e, - 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x07, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x2e, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x48, 0x6f, 0x6f, 0x6b, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x12, 0x14, 0x2e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x6f, 0x6f, 0x6b, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x48, 0x6f, 0x6f, 0x6b, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, - 0x0a, 0x09, 0x4e, 0x6f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x16, 0x2e, 0x4e, 0x6f, - 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x4e, 0x6f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x48, - 0x6f, 0x6f, 0x6b, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3e, 0x5a, 0x3c, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x73, 0x65, - 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x73, - 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, - 0x76, 0x32, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} +const file_pkg_hooks_hooks_proto_rawDesc = "" + + "\n" + + "\x15pkg/hooks/hooks.proto\x1a\x18pkg/semrel/structs.proto\x1a\x1bpkg/provider/provider.proto\"\xab\x01\n" + + "\tHooksInit\x1a|\n" + + "\aRequest\x126\n" + + "\x06config\x18\x01 \x03(\v2\x1e.HooksInit.Request.ConfigEntryR\x06config\x1a9\n" + + "\vConfigEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05error\x18\x01 \x01(\tR\x05error\"6\n" + + "\tHooksName\x1a\t\n" + + "\aRequest\x1a\x1e\n" + + "\bResponse\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"?\n" + + "\fHooksVersion\x1a\t\n" + + "\aRequest\x1a$\n" + + "\bResponse\x12\x18\n" + + "\aversion\x18\x01 \x01(\tR\aversion\"\xda\x01\n" + + "\x11SuccessHookConfig\x12!\n" + + "\acommits\x18\x01 \x03(\v2\a.CommitR\acommits\x12+\n" + + "\fprev_release\x18\x02 \x01(\v2\b.ReleaseR\vprevRelease\x12)\n" + + "\vnew_release\x18\x03 \x01(\v2\b.ReleaseR\n" + + "newRelease\x12\x1c\n" + + "\tchangelog\x18\x04 \x01(\tR\tchangelog\x12,\n" + + "\trepo_info\x18\x05 \x01(\v2\x0f.RepositoryInfoR\brepoInfo\"f\n" + + "\vSuccessHook\x1a5\n" + + "\aRequest\x12*\n" + + "\x06config\x18\x01 \x01(\v2\x12.SuccessHookConfigR\x06config\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05error\x18\x01 \x01(\tR\x05error\"U\n" + + "\x0fNoReleaseConfig\x12(\n" + + "\x06reason\x18\x01 \x01(\x0e2\x10.NoReleaseReasonR\x06reason\x12\x18\n" + + "\amessage\x18\x02 \x01(\tR\amessage\"f\n" + + "\rNoReleaseHook\x1a3\n" + + "\aRequest\x12(\n" + + "\x06config\x18\x01 \x01(\v2\x10.NoReleaseConfigR\x06config\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05error\x18\x01 \x01(\tR\x05error*/\n" + + "\x0fNoReleaseReason\x12\r\n" + + "\tCONDITION\x10\x00\x12\r\n" + + "\tNO_CHANGE\x10\x012\x9f\x02\n" + + "\vHooksPlugin\x12/\n" + + "\x04Init\x12\x12.HooksInit.Request\x1a\x13.HooksInit.Response\x12/\n" + + "\x04Name\x12\x12.HooksName.Request\x1a\x13.HooksName.Response\x128\n" + + "\aVersion\x12\x15.HooksVersion.Request\x1a\x16.HooksVersion.Response\x126\n" + + "\aSuccess\x12\x14.SuccessHook.Request\x1a\x15.SuccessHook.Response\x12<\n" + + "\tNoRelease\x12\x16.NoReleaseHook.Request\x1a\x17.NoReleaseHook.ResponseB>Z\n" + + "\aVersion\x12\x18.ProviderVersion.Request\x1a\x19.ProviderVersion.Response\x12.\n" + + "\aGetInfo\x12\x10.GetInfo.Request\x1a\x11.GetInfo.Response\x127\n" + + "\n" + + "GetCommits\x12\x13.GetCommits.Request\x1a\x14.GetCommits.Response\x12:\n" + + "\vGetReleases\x12\x14.GetReleases.Request\x1a\x15.GetReleases.Response\x12@\n" + + "\rCreateRelease\x12\x16.CreateRelease.Request\x1a\x17.CreateRelease.ResponseBAZ?github.com/go-semantic-release/semantic-release/v2/pkg/providerb\x06proto3" var ( file_pkg_provider_provider_proto_rawDescOnce sync.Once - file_pkg_provider_provider_proto_rawDescData = file_pkg_provider_provider_proto_rawDesc + file_pkg_provider_provider_proto_rawDescData []byte ) func file_pkg_provider_provider_proto_rawDescGZIP() []byte { file_pkg_provider_provider_proto_rawDescOnce.Do(func() { - file_pkg_provider_provider_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_provider_provider_proto_rawDescData) + file_pkg_provider_provider_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_provider_provider_proto_rawDesc), len(file_pkg_provider_provider_proto_rawDesc))) }) return file_pkg_provider_provider_proto_rawDescData } var file_pkg_provider_provider_proto_msgTypes = make([]protoimpl.MessageInfo, 24) -var file_pkg_provider_provider_proto_goTypes = []interface{}{ +var file_pkg_provider_provider_proto_goTypes = []any{ (*RepositoryInfo)(nil), // 0: RepositoryInfo (*CreateReleaseConfig)(nil), // 1: CreateReleaseConfig (*ProviderInit)(nil), // 2: ProviderInit @@ -1280,289 +1195,11 @@ func file_pkg_provider_provider_proto_init() { if File_pkg_provider_provider_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pkg_provider_provider_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RepositoryInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateReleaseConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderInit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCommits); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReleases); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRelease); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderInit_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderInit_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderName_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderName_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderVersion_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderVersion_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInfo_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInfo_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCommits_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCommits_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReleases_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReleases_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRelease_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_provider_provider_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRelease_Response); 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_pkg_provider_provider_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_provider_provider_proto_rawDesc), len(file_pkg_provider_provider_proto_rawDesc)), NumEnums: 0, NumMessages: 24, NumExtensions: 0, @@ -1573,7 +1210,6 @@ func file_pkg_provider_provider_proto_init() { MessageInfos: file_pkg_provider_provider_proto_msgTypes, }.Build() File_pkg_provider_provider_proto = out.File - file_pkg_provider_provider_proto_rawDesc = nil file_pkg_provider_provider_proto_goTypes = nil file_pkg_provider_provider_proto_depIdxs = nil } diff --git a/pkg/provider/provider.proto b/pkg/provider/provider.proto index 2df90089..aff71686 100644 --- a/pkg/provider/provider.proto +++ b/pkg/provider/provider.proto @@ -16,6 +16,7 @@ message CreateReleaseConfig { bool prerelease = 3; string branch = 4; string SHA = 5; + bool draft = 6; } message ProviderInit { diff --git a/pkg/provider/provider_grpc.pb.go b/pkg/provider/provider_grpc.pb.go index 84a5b1a4..26b0ea6c 100644 --- a/pkg/provider/provider_grpc.pb.go +++ b/pkg/provider/provider_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.6.0 +// - protoc v6.33.1 // source: pkg/provider/provider.proto package provider @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ProviderPlugin_Init_FullMethodName = "/ProviderPlugin/Init" @@ -50,8 +50,9 @@ func NewProviderPluginClient(cc grpc.ClientConnInterface) ProviderPluginClient { } func (c *providerPluginClient) Init(ctx context.Context, in *ProviderInit_Request, opts ...grpc.CallOption) (*ProviderInit_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ProviderInit_Response) - err := c.cc.Invoke(ctx, ProviderPlugin_Init_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProviderPlugin_Init_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *providerPluginClient) Init(ctx context.Context, in *ProviderInit_Reques } func (c *providerPluginClient) Name(ctx context.Context, in *ProviderName_Request, opts ...grpc.CallOption) (*ProviderName_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ProviderName_Response) - err := c.cc.Invoke(ctx, ProviderPlugin_Name_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProviderPlugin_Name_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *providerPluginClient) Name(ctx context.Context, in *ProviderName_Reques } func (c *providerPluginClient) Version(ctx context.Context, in *ProviderVersion_Request, opts ...grpc.CallOption) (*ProviderVersion_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ProviderVersion_Response) - err := c.cc.Invoke(ctx, ProviderPlugin_Version_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProviderPlugin_Version_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *providerPluginClient) Version(ctx context.Context, in *ProviderVersion_ } func (c *providerPluginClient) GetInfo(ctx context.Context, in *GetInfo_Request, opts ...grpc.CallOption) (*GetInfo_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetInfo_Response) - err := c.cc.Invoke(ctx, ProviderPlugin_GetInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProviderPlugin_GetInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *providerPluginClient) GetInfo(ctx context.Context, in *GetInfo_Request, } func (c *providerPluginClient) GetCommits(ctx context.Context, in *GetCommits_Request, opts ...grpc.CallOption) (*GetCommits_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCommits_Response) - err := c.cc.Invoke(ctx, ProviderPlugin_GetCommits_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProviderPlugin_GetCommits_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *providerPluginClient) GetCommits(ctx context.Context, in *GetCommits_Re } func (c *providerPluginClient) GetReleases(ctx context.Context, in *GetReleases_Request, opts ...grpc.CallOption) (*GetReleases_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetReleases_Response) - err := c.cc.Invoke(ctx, ProviderPlugin_GetReleases_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProviderPlugin_GetReleases_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *providerPluginClient) GetReleases(ctx context.Context, in *GetReleases_ } func (c *providerPluginClient) CreateRelease(ctx context.Context, in *CreateRelease_Request, opts ...grpc.CallOption) (*CreateRelease_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateRelease_Response) - err := c.cc.Invoke(ctx, ProviderPlugin_CreateRelease_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProviderPlugin_CreateRelease_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *providerPluginClient) CreateRelease(ctx context.Context, in *CreateRele // ProviderPluginServer is the server API for ProviderPlugin service. // All implementations must embed UnimplementedProviderPluginServer -// for forward compatibility +// for forward compatibility. type ProviderPluginServer interface { Init(context.Context, *ProviderInit_Request) (*ProviderInit_Response, error) Name(context.Context, *ProviderName_Request) (*ProviderName_Response, error) @@ -126,32 +133,36 @@ type ProviderPluginServer interface { mustEmbedUnimplementedProviderPluginServer() } -// UnimplementedProviderPluginServer must be embedded to have forward compatible implementations. -type UnimplementedProviderPluginServer struct { -} +// UnimplementedProviderPluginServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedProviderPluginServer struct{} func (UnimplementedProviderPluginServer) Init(context.Context, *ProviderInit_Request) (*ProviderInit_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Init not implemented") + return nil, status.Error(codes.Unimplemented, "method Init not implemented") } func (UnimplementedProviderPluginServer) Name(context.Context, *ProviderName_Request) (*ProviderName_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Name not implemented") + return nil, status.Error(codes.Unimplemented, "method Name not implemented") } func (UnimplementedProviderPluginServer) Version(context.Context, *ProviderVersion_Request) (*ProviderVersion_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") + return nil, status.Error(codes.Unimplemented, "method Version not implemented") } func (UnimplementedProviderPluginServer) GetInfo(context.Context, *GetInfo_Request) (*GetInfo_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") + return nil, status.Error(codes.Unimplemented, "method GetInfo not implemented") } func (UnimplementedProviderPluginServer) GetCommits(context.Context, *GetCommits_Request) (*GetCommits_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCommits not implemented") + return nil, status.Error(codes.Unimplemented, "method GetCommits not implemented") } func (UnimplementedProviderPluginServer) GetReleases(context.Context, *GetReleases_Request) (*GetReleases_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReleases not implemented") + return nil, status.Error(codes.Unimplemented, "method GetReleases not implemented") } func (UnimplementedProviderPluginServer) CreateRelease(context.Context, *CreateRelease_Request) (*CreateRelease_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateRelease not implemented") + return nil, status.Error(codes.Unimplemented, "method CreateRelease not implemented") } func (UnimplementedProviderPluginServer) mustEmbedUnimplementedProviderPluginServer() {} +func (UnimplementedProviderPluginServer) testEmbeddedByValue() {} // UnsafeProviderPluginServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ProviderPluginServer will @@ -161,6 +172,13 @@ type UnsafeProviderPluginServer interface { } func RegisterProviderPluginServer(s grpc.ServiceRegistrar, srv ProviderPluginServer) { + // If the following call panics, it indicates UnimplementedProviderPluginServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ProviderPlugin_ServiceDesc, srv) } diff --git a/pkg/semrel/structs.pb.go b/pkg/semrel/structs.pb.go index 85a59576..190fec5a 100644 --- a/pkg/semrel/structs.pb.go +++ b/pkg/semrel/structs.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.11 +// protoc v6.33.1 // source: pkg/semrel/structs.proto package semrel @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,22 +22,19 @@ const ( ) type RawCommit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SHA string `protobuf:"bytes,1,opt,name=SHA,proto3" json:"SHA,omitempty"` + RawMessage string `protobuf:"bytes,2,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"` + Annotations map[string]string `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - SHA string `protobuf:"bytes,1,opt,name=SHA,proto3" json:"SHA,omitempty"` - RawMessage string `protobuf:"bytes,2,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"` - Annotations map[string]string `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *RawCommit) Reset() { *x = RawCommit{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_semrel_structs_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_semrel_structs_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RawCommit) String() string { @@ -47,7 +45,7 @@ func (*RawCommit) ProtoMessage() {} func (x *RawCommit) ProtoReflect() protoreflect.Message { mi := &file_pkg_semrel_structs_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -84,23 +82,20 @@ func (x *RawCommit) GetAnnotations() map[string]string { } type Change struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Major bool `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` + Minor bool `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` + Patch bool `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` + Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Major bool `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` - Minor bool `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` - Patch bool `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` - Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *Change) Reset() { *x = Change{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_semrel_structs_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_semrel_structs_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Change) String() string { @@ -111,7 +106,7 @@ func (*Change) ProtoMessage() {} func (x *Change) ProtoReflect() protoreflect.Message { mi := &file_pkg_semrel_structs_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -155,26 +150,23 @@ func (x *Change) GetAnnotations() map[string]string { } type Commit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SHA string `protobuf:"bytes,1,opt,name=SHA,proto3" json:"SHA,omitempty"` + Raw []string `protobuf:"bytes,2,rep,name=raw,proto3" json:"raw,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"` + Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` + Change *Change `protobuf:"bytes,6,opt,name=change,proto3" json:"change,omitempty"` + Annotations map[string]string `protobuf:"bytes,7,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - SHA string `protobuf:"bytes,1,opt,name=SHA,proto3" json:"SHA,omitempty"` - Raw []string `protobuf:"bytes,2,rep,name=raw,proto3" json:"raw,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"` - Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` - Change *Change `protobuf:"bytes,6,opt,name=change,proto3" json:"change,omitempty"` - Annotations map[string]string `protobuf:"bytes,7,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *Commit) Reset() { *x = Commit{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_semrel_structs_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_semrel_structs_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Commit) String() string { @@ -185,7 +177,7 @@ func (*Commit) ProtoMessage() {} func (x *Commit) ProtoReflect() protoreflect.Message { mi := &file_pkg_semrel_structs_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -250,22 +242,19 @@ func (x *Commit) GetAnnotations() map[string]string { } type Release struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SHA string `protobuf:"bytes,1,opt,name=SHA,proto3" json:"SHA,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Annotations map[string]string `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - SHA string `protobuf:"bytes,1,opt,name=SHA,proto3" json:"SHA,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Annotations map[string]string `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *Release) Reset() { *x = Release{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_semrel_structs_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_semrel_structs_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Release) String() string { @@ -276,7 +265,7 @@ func (*Release) ProtoMessage() {} func (x *Release) ProtoReflect() protoreflect.Message { mi := &file_pkg_semrel_structs_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -314,83 +303,58 @@ func (x *Release) GetAnnotations() map[string]string { var File_pkg_semrel_structs_proto protoreflect.FileDescriptor -var file_pkg_semrel_structs_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x6d, 0x72, 0x65, 0x6c, 0x2f, 0x73, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x09, 0x52, - 0x61, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x48, 0x41, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x53, 0x48, 0x41, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x61, - 0x77, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x72, 0x61, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2e, 0x41, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc6, 0x01, 0x0a, 0x06, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, - 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, - 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x8d, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x10, - 0x0a, 0x03, 0x53, 0x48, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x53, 0x48, 0x41, - 0x12, 0x10, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x72, - 0x61, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, - 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0xb2, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, - 0x10, 0x0a, 0x03, 0x53, 0x48, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x53, 0x48, - 0x41, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, - 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x73, 0x65, 0x6d, 0x61, 0x6e, - 0x74, 0x69, 0x63, 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x70, - 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x6d, 0x72, 0x65, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} +const file_pkg_semrel_structs_proto_rawDesc = "" + + "\n" + + "\x18pkg/semrel/structs.proto\"\xbd\x01\n" + + "\tRawCommit\x12\x10\n" + + "\x03SHA\x18\x01 \x01(\tR\x03SHA\x12\x1f\n" + + "\vraw_message\x18\x02 \x01(\tR\n" + + "rawMessage\x12=\n" + + "\vannotations\x18\x03 \x03(\v2\x1b.RawCommit.AnnotationsEntryR\vannotations\x1a>\n" + + "\x10AnnotationsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xc6\x01\n" + + "\x06Change\x12\x14\n" + + "\x05major\x18\x01 \x01(\bR\x05major\x12\x14\n" + + "\x05minor\x18\x02 \x01(\bR\x05minor\x12\x14\n" + + "\x05patch\x18\x03 \x01(\bR\x05patch\x12:\n" + + "\vannotations\x18\x04 \x03(\v2\x18.Change.AnnotationsEntryR\vannotations\x1a>\n" + + "\x10AnnotationsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x8d\x02\n" + + "\x06Commit\x12\x10\n" + + "\x03SHA\x18\x01 \x01(\tR\x03SHA\x12\x10\n" + + "\x03raw\x18\x02 \x03(\tR\x03raw\x12\x12\n" + + "\x04type\x18\x03 \x01(\tR\x04type\x12\x14\n" + + "\x05scope\x18\x04 \x01(\tR\x05scope\x12\x18\n" + + "\amessage\x18\x05 \x01(\tR\amessage\x12\x1f\n" + + "\x06change\x18\x06 \x01(\v2\a.ChangeR\x06change\x12:\n" + + "\vannotations\x18\a \x03(\v2\x18.Commit.AnnotationsEntryR\vannotations\x1a>\n" + + "\x10AnnotationsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb2\x01\n" + + "\aRelease\x12\x10\n" + + "\x03SHA\x18\x01 \x01(\tR\x03SHA\x12\x18\n" + + "\aversion\x18\x02 \x01(\tR\aversion\x12;\n" + + "\vannotations\x18\x03 \x03(\v2\x19.Release.AnnotationsEntryR\vannotations\x1a>\n" + + "\x10AnnotationsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B?Z=github.com/go-semantic-release/semantic-release/v2/pkg/semrelb\x06proto3" var ( file_pkg_semrel_structs_proto_rawDescOnce sync.Once - file_pkg_semrel_structs_proto_rawDescData = file_pkg_semrel_structs_proto_rawDesc + file_pkg_semrel_structs_proto_rawDescData []byte ) func file_pkg_semrel_structs_proto_rawDescGZIP() []byte { file_pkg_semrel_structs_proto_rawDescOnce.Do(func() { - file_pkg_semrel_structs_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_semrel_structs_proto_rawDescData) + file_pkg_semrel_structs_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_semrel_structs_proto_rawDesc), len(file_pkg_semrel_structs_proto_rawDesc))) }) return file_pkg_semrel_structs_proto_rawDescData } var file_pkg_semrel_structs_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_pkg_semrel_structs_proto_goTypes = []interface{}{ +var file_pkg_semrel_structs_proto_goTypes = []any{ (*RawCommit)(nil), // 0: RawCommit (*Change)(nil), // 1: Change (*Commit)(nil), // 2: Commit @@ -418,61 +382,11 @@ func file_pkg_semrel_structs_proto_init() { if File_pkg_semrel_structs_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pkg_semrel_structs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RawCommit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_semrel_structs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Change); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_semrel_structs_proto_msgTypes[2].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_pkg_semrel_structs_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Release); 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_pkg_semrel_structs_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_semrel_structs_proto_rawDesc), len(file_pkg_semrel_structs_proto_rawDesc)), NumEnums: 0, NumMessages: 8, NumExtensions: 0, @@ -483,7 +397,6 @@ func file_pkg_semrel_structs_proto_init() { MessageInfos: file_pkg_semrel_structs_proto_msgTypes, }.Build() File_pkg_semrel_structs_proto = out.File - file_pkg_semrel_structs_proto_rawDesc = nil file_pkg_semrel_structs_proto_goTypes = nil file_pkg_semrel_structs_proto_depIdxs = nil } diff --git a/pkg/updater/updater.pb.go b/pkg/updater/updater.pb.go index a899bf18..ce758718 100644 --- a/pkg/updater/updater.pb.go +++ b/pkg/updater/updater.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.36.11 +// protoc v6.33.1 // source: pkg/updater/updater.proto package updater @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,18 +22,16 @@ const ( ) type FilesUpdaterInit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterInit) Reset() { *x = FilesUpdaterInit{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterInit) String() string { @@ -43,7 +42,7 @@ func (*FilesUpdaterInit) ProtoMessage() {} func (x *FilesUpdaterInit) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -59,18 +58,16 @@ func (*FilesUpdaterInit) Descriptor() ([]byte, []int) { } type FilesUpdaterName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterName) Reset() { *x = FilesUpdaterName{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterName) String() string { @@ -81,7 +78,7 @@ func (*FilesUpdaterName) ProtoMessage() {} func (x *FilesUpdaterName) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -97,18 +94,16 @@ func (*FilesUpdaterName) Descriptor() ([]byte, []int) { } type FilesUpdaterVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterVersion) Reset() { *x = FilesUpdaterVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterVersion) String() string { @@ -119,7 +114,7 @@ func (*FilesUpdaterVersion) ProtoMessage() {} func (x *FilesUpdaterVersion) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -135,18 +130,16 @@ func (*FilesUpdaterVersion) Descriptor() ([]byte, []int) { } type FilesUpdaterForFiles struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterForFiles) Reset() { *x = FilesUpdaterForFiles{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterForFiles) String() string { @@ -157,7 +150,7 @@ func (*FilesUpdaterForFiles) ProtoMessage() {} func (x *FilesUpdaterForFiles) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -173,18 +166,16 @@ func (*FilesUpdaterForFiles) Descriptor() ([]byte, []int) { } type FilesUpdaterApply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterApply) Reset() { *x = FilesUpdaterApply{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterApply) String() string { @@ -195,7 +186,7 @@ func (*FilesUpdaterApply) ProtoMessage() {} func (x *FilesUpdaterApply) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -211,20 +202,17 @@ func (*FilesUpdaterApply) Descriptor() ([]byte, []int) { } type FilesUpdaterInit_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterInit_Request) Reset() { *x = FilesUpdaterInit_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterInit_Request) String() string { @@ -235,7 +223,7 @@ func (*FilesUpdaterInit_Request) ProtoMessage() {} func (x *FilesUpdaterInit_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -258,20 +246,17 @@ func (x *FilesUpdaterInit_Request) GetConfig() map[string]string { } type FilesUpdaterInit_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterInit_Response) Reset() { *x = FilesUpdaterInit_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterInit_Response) String() string { @@ -282,7 +267,7 @@ func (*FilesUpdaterInit_Response) ProtoMessage() {} func (x *FilesUpdaterInit_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -305,18 +290,16 @@ func (x *FilesUpdaterInit_Response) GetError() string { } type FilesUpdaterName_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterName_Request) Reset() { *x = FilesUpdaterName_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterName_Request) String() string { @@ -327,7 +310,7 @@ func (*FilesUpdaterName_Request) ProtoMessage() {} func (x *FilesUpdaterName_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -343,20 +326,17 @@ func (*FilesUpdaterName_Request) Descriptor() ([]byte, []int) { } type FilesUpdaterName_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterName_Response) Reset() { *x = FilesUpdaterName_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterName_Response) String() string { @@ -367,7 +347,7 @@ func (*FilesUpdaterName_Response) ProtoMessage() {} func (x *FilesUpdaterName_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -390,18 +370,16 @@ func (x *FilesUpdaterName_Response) GetName() string { } type FilesUpdaterVersion_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterVersion_Request) Reset() { *x = FilesUpdaterVersion_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterVersion_Request) String() string { @@ -412,7 +390,7 @@ func (*FilesUpdaterVersion_Request) ProtoMessage() {} func (x *FilesUpdaterVersion_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -428,20 +406,17 @@ func (*FilesUpdaterVersion_Request) Descriptor() ([]byte, []int) { } type FilesUpdaterVersion_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterVersion_Response) Reset() { *x = FilesUpdaterVersion_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterVersion_Response) String() string { @@ -452,7 +427,7 @@ func (*FilesUpdaterVersion_Response) ProtoMessage() {} func (x *FilesUpdaterVersion_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -475,18 +450,16 @@ func (x *FilesUpdaterVersion_Response) GetVersion() string { } type FilesUpdaterForFiles_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterForFiles_Request) Reset() { *x = FilesUpdaterForFiles_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterForFiles_Request) String() string { @@ -497,7 +470,7 @@ func (*FilesUpdaterForFiles_Request) ProtoMessage() {} func (x *FilesUpdaterForFiles_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -513,20 +486,17 @@ func (*FilesUpdaterForFiles_Request) Descriptor() ([]byte, []int) { } type FilesUpdaterForFiles_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Files string `protobuf:"bytes,1,opt,name=files,proto3" json:"files,omitempty"` unknownFields protoimpl.UnknownFields - - Files string `protobuf:"bytes,1,opt,name=files,proto3" json:"files,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterForFiles_Response) Reset() { *x = FilesUpdaterForFiles_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterForFiles_Response) String() string { @@ -537,7 +507,7 @@ func (*FilesUpdaterForFiles_Response) ProtoMessage() {} func (x *FilesUpdaterForFiles_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -560,21 +530,18 @@ func (x *FilesUpdaterForFiles_Response) GetFiles() string { } type FilesUpdaterApply_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` + NewVersion string `protobuf:"bytes,2,opt,name=new_version,json=newVersion,proto3" json:"new_version,omitempty"` unknownFields protoimpl.UnknownFields - - File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` - NewVersion string `protobuf:"bytes,2,opt,name=new_version,json=newVersion,proto3" json:"new_version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterApply_Request) Reset() { *x = FilesUpdaterApply_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterApply_Request) String() string { @@ -585,7 +552,7 @@ func (*FilesUpdaterApply_Request) ProtoMessage() {} func (x *FilesUpdaterApply_Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -615,20 +582,17 @@ func (x *FilesUpdaterApply_Request) GetNewVersion() string { } type FilesUpdaterApply_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FilesUpdaterApply_Response) Reset() { *x = FilesUpdaterApply_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_updater_updater_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_updater_updater_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilesUpdaterApply_Response) String() string { @@ -639,7 +603,7 @@ func (*FilesUpdaterApply_Response) ProtoMessage() {} func (x *FilesUpdaterApply_Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_updater_updater_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -663,84 +627,57 @@ func (x *FilesUpdaterApply_Response) GetError() string { var File_pkg_updater_updater_proto protoreflect.FileDescriptor -var file_pkg_updater_updater_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x70, 0x6b, 0x67, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x2f, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x01, 0x0a, 0x10, - 0x46, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, - 0x1a, 0x83, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x06, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x46, - 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x39, 0x0a, 0x0b, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x3d, 0x0a, 0x10, 0x46, 0x69, 0x6c, 0x65, - 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x09, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x46, 0x0a, 0x13, 0x46, 0x69, 0x6c, 0x65, 0x73, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x09, - 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x0a, 0x08, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x43, 0x0a, 0x14, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x46, - 0x6f, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, - 0x69, 0x6c, 0x65, 0x73, 0x22, 0x75, 0x0a, 0x11, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x1a, 0x3e, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, - 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0xe7, 0x02, 0x0a, 0x12, - 0x46, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x12, 0x3d, 0x0a, 0x04, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x19, 0x2e, 0x46, 0x69, 0x6c, - 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x2e, 0x46, 0x69, 0x6c, 0x65, - 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x46, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x46, 0x69, - 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x46, 0x69, 0x6c, 0x65, - 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x08, 0x46, 0x6f, 0x72, 0x46, - 0x69, 0x6c, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x72, 0x46, 0x6f, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x05, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x2e, 0x46, - 0x69, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x73, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2d, - 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, - 0x2d, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x6b, 0x67, 0x2f, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_pkg_updater_updater_proto_rawDesc = "" + + "\n" + + "\x19pkg/updater/updater.proto\"\xba\x01\n" + + "\x10FilesUpdaterInit\x1a\x83\x01\n" + + "\aRequest\x12=\n" + + "\x06config\x18\x01 \x03(\v2%.FilesUpdaterInit.Request.ConfigEntryR\x06config\x1a9\n" + + "\vConfigEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05error\x18\x01 \x01(\tR\x05error\"=\n" + + "\x10FilesUpdaterName\x1a\t\n" + + "\aRequest\x1a\x1e\n" + + "\bResponse\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"F\n" + + "\x13FilesUpdaterVersion\x1a\t\n" + + "\aRequest\x1a$\n" + + "\bResponse\x12\x18\n" + + "\aversion\x18\x01 \x01(\tR\aversion\"C\n" + + "\x14FilesUpdaterForFiles\x1a\t\n" + + "\aRequest\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05files\x18\x01 \x01(\tR\x05files\"u\n" + + "\x11FilesUpdaterApply\x1a>\n" + + "\aRequest\x12\x12\n" + + "\x04file\x18\x01 \x01(\tR\x04file\x12\x1f\n" + + "\vnew_version\x18\x02 \x01(\tR\n" + + "newVersion\x1a \n" + + "\bResponse\x12\x14\n" + + "\x05error\x18\x01 \x01(\tR\x05error2\xe7\x02\n" + + "\x12FilesUpdaterPlugin\x12=\n" + + "\x04Init\x12\x19.FilesUpdaterInit.Request\x1a\x1a.FilesUpdaterInit.Response\x12=\n" + + "\x04Name\x12\x19.FilesUpdaterName.Request\x1a\x1a.FilesUpdaterName.Response\x12F\n" + + "\aVersion\x12\x1c.FilesUpdaterVersion.Request\x1a\x1d.FilesUpdaterVersion.Response\x12I\n" + + "\bForFiles\x12\x1d.FilesUpdaterForFiles.Request\x1a\x1e.FilesUpdaterForFiles.Response\x12@\n" + + "\x05Apply\x12\x1a.FilesUpdaterApply.Request\x1a\x1b.FilesUpdaterApply.ResponseB@Z>github.com/go-semantic-release/semantic-release/v2/pkg/updaterb\x06proto3" var ( file_pkg_updater_updater_proto_rawDescOnce sync.Once - file_pkg_updater_updater_proto_rawDescData = file_pkg_updater_updater_proto_rawDesc + file_pkg_updater_updater_proto_rawDescData []byte ) func file_pkg_updater_updater_proto_rawDescGZIP() []byte { file_pkg_updater_updater_proto_rawDescOnce.Do(func() { - file_pkg_updater_updater_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_updater_updater_proto_rawDescData) + file_pkg_updater_updater_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_updater_updater_proto_rawDesc), len(file_pkg_updater_updater_proto_rawDesc))) }) return file_pkg_updater_updater_proto_rawDescData } var file_pkg_updater_updater_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_pkg_updater_updater_proto_goTypes = []interface{}{ +var file_pkg_updater_updater_proto_goTypes = []any{ (*FilesUpdaterInit)(nil), // 0: FilesUpdaterInit (*FilesUpdaterName)(nil), // 1: FilesUpdaterName (*FilesUpdaterVersion)(nil), // 2: FilesUpdaterVersion @@ -782,193 +719,11 @@ func file_pkg_updater_updater_proto_init() { if File_pkg_updater_updater_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pkg_updater_updater_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterInit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterForFiles); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterApply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterInit_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterInit_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterName_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterName_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterVersion_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterVersion_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterForFiles_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterForFiles_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterApply_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_updater_updater_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilesUpdaterApply_Response); 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_pkg_updater_updater_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_updater_updater_proto_rawDesc), len(file_pkg_updater_updater_proto_rawDesc)), NumEnums: 0, NumMessages: 16, NumExtensions: 0, @@ -979,7 +734,6 @@ func file_pkg_updater_updater_proto_init() { MessageInfos: file_pkg_updater_updater_proto_msgTypes, }.Build() File_pkg_updater_updater_proto = out.File - file_pkg_updater_updater_proto_rawDesc = nil file_pkg_updater_updater_proto_goTypes = nil file_pkg_updater_updater_proto_depIdxs = nil } diff --git a/pkg/updater/updater_grpc.pb.go b/pkg/updater/updater_grpc.pb.go index 23785a9b..251de69c 100644 --- a/pkg/updater/updater_grpc.pb.go +++ b/pkg/updater/updater_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc-gen-go-grpc v1.6.0 +// - protoc v6.33.1 // source: pkg/updater/updater.proto package updater @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( FilesUpdaterPlugin_Init_FullMethodName = "/FilesUpdaterPlugin/Init" @@ -46,8 +46,9 @@ func NewFilesUpdaterPluginClient(cc grpc.ClientConnInterface) FilesUpdaterPlugin } func (c *filesUpdaterPluginClient) Init(ctx context.Context, in *FilesUpdaterInit_Request, opts ...grpc.CallOption) (*FilesUpdaterInit_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FilesUpdaterInit_Response) - err := c.cc.Invoke(ctx, FilesUpdaterPlugin_Init_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FilesUpdaterPlugin_Init_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *filesUpdaterPluginClient) Init(ctx context.Context, in *FilesUpdaterIni } func (c *filesUpdaterPluginClient) Name(ctx context.Context, in *FilesUpdaterName_Request, opts ...grpc.CallOption) (*FilesUpdaterName_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FilesUpdaterName_Response) - err := c.cc.Invoke(ctx, FilesUpdaterPlugin_Name_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FilesUpdaterPlugin_Name_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *filesUpdaterPluginClient) Name(ctx context.Context, in *FilesUpdaterNam } func (c *filesUpdaterPluginClient) Version(ctx context.Context, in *FilesUpdaterVersion_Request, opts ...grpc.CallOption) (*FilesUpdaterVersion_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FilesUpdaterVersion_Response) - err := c.cc.Invoke(ctx, FilesUpdaterPlugin_Version_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FilesUpdaterPlugin_Version_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *filesUpdaterPluginClient) Version(ctx context.Context, in *FilesUpdater } func (c *filesUpdaterPluginClient) ForFiles(ctx context.Context, in *FilesUpdaterForFiles_Request, opts ...grpc.CallOption) (*FilesUpdaterForFiles_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FilesUpdaterForFiles_Response) - err := c.cc.Invoke(ctx, FilesUpdaterPlugin_ForFiles_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FilesUpdaterPlugin_ForFiles_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *filesUpdaterPluginClient) ForFiles(ctx context.Context, in *FilesUpdate } func (c *filesUpdaterPluginClient) Apply(ctx context.Context, in *FilesUpdaterApply_Request, opts ...grpc.CallOption) (*FilesUpdaterApply_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FilesUpdaterApply_Response) - err := c.cc.Invoke(ctx, FilesUpdaterPlugin_Apply_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FilesUpdaterPlugin_Apply_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *filesUpdaterPluginClient) Apply(ctx context.Context, in *FilesUpdaterAp // FilesUpdaterPluginServer is the server API for FilesUpdaterPlugin service. // All implementations must embed UnimplementedFilesUpdaterPluginServer -// for forward compatibility +// for forward compatibility. type FilesUpdaterPluginServer interface { Init(context.Context, *FilesUpdaterInit_Request) (*FilesUpdaterInit_Response, error) Name(context.Context, *FilesUpdaterName_Request) (*FilesUpdaterName_Response, error) @@ -102,26 +107,30 @@ type FilesUpdaterPluginServer interface { mustEmbedUnimplementedFilesUpdaterPluginServer() } -// UnimplementedFilesUpdaterPluginServer must be embedded to have forward compatible implementations. -type UnimplementedFilesUpdaterPluginServer struct { -} +// UnimplementedFilesUpdaterPluginServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedFilesUpdaterPluginServer struct{} func (UnimplementedFilesUpdaterPluginServer) Init(context.Context, *FilesUpdaterInit_Request) (*FilesUpdaterInit_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Init not implemented") + return nil, status.Error(codes.Unimplemented, "method Init not implemented") } func (UnimplementedFilesUpdaterPluginServer) Name(context.Context, *FilesUpdaterName_Request) (*FilesUpdaterName_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Name not implemented") + return nil, status.Error(codes.Unimplemented, "method Name not implemented") } func (UnimplementedFilesUpdaterPluginServer) Version(context.Context, *FilesUpdaterVersion_Request) (*FilesUpdaterVersion_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") + return nil, status.Error(codes.Unimplemented, "method Version not implemented") } func (UnimplementedFilesUpdaterPluginServer) ForFiles(context.Context, *FilesUpdaterForFiles_Request) (*FilesUpdaterForFiles_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method ForFiles not implemented") + return nil, status.Error(codes.Unimplemented, "method ForFiles not implemented") } func (UnimplementedFilesUpdaterPluginServer) Apply(context.Context, *FilesUpdaterApply_Request) (*FilesUpdaterApply_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Apply not implemented") + return nil, status.Error(codes.Unimplemented, "method Apply not implemented") } func (UnimplementedFilesUpdaterPluginServer) mustEmbedUnimplementedFilesUpdaterPluginServer() {} +func (UnimplementedFilesUpdaterPluginServer) testEmbeddedByValue() {} // UnsafeFilesUpdaterPluginServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to FilesUpdaterPluginServer will @@ -131,6 +140,13 @@ type UnsafeFilesUpdaterPluginServer interface { } func RegisterFilesUpdaterPluginServer(s grpc.ServiceRegistrar, srv FilesUpdaterPluginServer) { + // If the following call panics, it indicates UnimplementedFilesUpdaterPluginServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&FilesUpdaterPlugin_ServiceDesc, srv) } From 49a1372d1f1c2655786ce4f3cd2404bfa2d48a56 Mon Sep 17 00:00:00 2001 From: ianhundere <138915+ianhundere@users.noreply.github.com> Date: Sun, 4 Jan 2026 04:34:40 -0800 Subject: [PATCH 2/2] test(draft+update-file): adds draft_test.go and update_before_test.go. --- cmd/semantic-release/draft_test.go | 68 ++++++++ cmd/semantic-release/update_before_test.go | 179 +++++++++++++++++++++ 2 files changed, 247 insertions(+) create mode 100644 cmd/semantic-release/draft_test.go create mode 100644 cmd/semantic-release/update_before_test.go diff --git a/cmd/semantic-release/draft_test.go b/cmd/semantic-release/draft_test.go new file mode 100644 index 00000000..5a8e7022 --- /dev/null +++ b/cmd/semantic-release/draft_test.go @@ -0,0 +1,68 @@ +package main + +import ( + "testing" + + "github.com/go-semantic-release/semantic-release/v2/pkg/config" + "github.com/go-semantic-release/semantic-release/v2/pkg/provider" +) + +func TestDraftOptionParsing(t *testing.T) { + tests := []struct { + name string + providerOpts map[string]string + expectedDraft bool + }{ + { + name: "draft=true sets Draft to true", + providerOpts: map[string]string{"draft": "true"}, + expectedDraft: true, + }, + { + name: "draft=false sets Draft to false", + providerOpts: map[string]string{"draft": "false"}, + expectedDraft: false, + }, + { + name: "draft=yes sets Draft to false (strict matching)", + providerOpts: map[string]string{"draft": "yes"}, + expectedDraft: false, + }, + { + name: "draft=1 sets Draft to false (strict matching)", + providerOpts: map[string]string{"draft": "1"}, + expectedDraft: false, + }, + { + name: "missing draft option defaults to false", + providerOpts: map[string]string{}, + expectedDraft: false, + }, + { + name: "draft=TRUE (uppercase) sets Draft to false (case-sensitive)", + providerOpts: map[string]string{"draft": "TRUE"}, + expectedDraft: false, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + conf := &config.Config{ + ProviderOpts: tt.providerOpts, + } + + draft := false + if draftOpt, ok := conf.ProviderOpts["draft"]; ok && draftOpt == "true" { + draft = true + } + + releaseConfig := &provider.CreateReleaseConfig{ + Draft: draft, + } + + if releaseConfig.Draft != tt.expectedDraft { + t.Errorf("expected Draft=%v, got Draft=%v", tt.expectedDraft, releaseConfig.Draft) + } + }) + } +} diff --git a/cmd/semantic-release/update_before_test.go b/cmd/semantic-release/update_before_test.go new file mode 100644 index 00000000..4075b246 --- /dev/null +++ b/cmd/semantic-release/update_before_test.go @@ -0,0 +1,179 @@ +package main + +import ( + "os" + "testing" +) + +func createTempFile(t *testing.T, content string) string { + t.Helper() + + tmpFile, err := os.CreateTemp("", "test-version-*") + if err != nil { + t.Fatalf("failed to create temp file: %v", err) + } + path := tmpFile.Name() + t.Cleanup(func() { + _ = os.Remove(path) + }) + + if _, err := tmpFile.WriteString(content); err != nil { + t.Fatalf("failed to write temp file: %v", err) + } + if err := tmpFile.Close(); err != nil { + t.Fatalf("failed to close temp file: %v", err) + } + + return path +} + +func patternForFile(path string, regex string, template string) string { + return path + ":" + regex + ":" + template +} + +func TestUpdateFilesBeforeRelease(t *testing.T) { + tests := []struct { + name string + regex string + template string + version string + fileContent string + expectedContent string + expectError bool + }{ + { + name: "simple version replacement", + regex: "^.*$", + template: "{{version}}", + version: "1.2.3", + fileContent: "0.0.0", + expectedContent: "1.2.3", + expectError: false, + }, + { + name: "python version with major.minor.patch", + regex: `__version__ = ".*"`, + template: `__version__ = "{{major}}.{{minor}}.{{patch}}"`, + version: "2.5.8", + fileContent: `__version__ = "0.0.0"`, + expectedContent: `__version__ = "2.5.8"`, + expectError: false, + }, + { + name: "template variable substitution", + regex: "v.*", + template: "v{{version}}", + version: "3.0.0", + fileContent: "v0.0.0", + expectedContent: "v3.0.0", + expectError: false, + }, + { + name: "already up-to-date results in no change", + regex: "^.*$", + template: "{{version}}", + version: "1.2.3", + fileContent: "1.2.3", + expectedContent: "1.2.3", + expectError: false, + }, + { + name: "pattern does not match content", + regex: "does-not-exist", + template: "{{version}}", + version: "1.0.0", + fileContent: "0.0.0", + expectError: true, + }, + { + name: "multiple variable types", + regex: "Version = .*", + template: "Version = {{major}}.{{minor}}.{{patch}}", + version: "4.2.1", + fileContent: "Version = 0.0.0", + expectedContent: "Version = 4.2.1", + expectError: false, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + path := createTempFile(t, tt.fileContent) + pattern := patternForFile(path, tt.regex, tt.template) + err := updateFilesBeforeRelease([]string{pattern}, tt.version) + + if tt.expectError { + if err == nil { + t.Errorf("expected error but got none") + } + return + } + + if err != nil { + t.Errorf("unexpected error: %v", err) + return + } + + content, err := os.ReadFile(path) + if err != nil { + t.Fatalf("failed to read updated file: %v", err) + } + + if string(content) != tt.expectedContent { + t.Errorf("expected content %q, got %q", tt.expectedContent, string(content)) + } + }) + } +} + +func TestUpdateFilesBeforeReleasePreservesPermissions(t *testing.T) { + path := createTempFile(t, "0.0.0") + if err := os.Chmod(path, 0o755); err != nil { + t.Fatalf("failed to chmod temp file: %v", err) + } + + pattern := patternForFile(path, "^.*$", "{{version}}") + if err := updateFilesBeforeRelease([]string{pattern}, "1.0.0"); err != nil { + t.Fatalf("unexpected error: %v", err) + } + + fi, err := os.Stat(path) + if err != nil { + t.Fatalf("failed to stat file: %v", err) + } + if fi.Mode().Perm() != 0o755 { + t.Fatalf("expected permissions 0755, got %v", fi.Mode().Perm()) + } +} + +func TestUpdateFilesBeforeReleaseInvalidPatternFormat(t *testing.T) { + err := updateFilesBeforeRelease([]string{"VERSION"}, "1.0.0") + if err == nil { + t.Error("expected error but got none") + } +} + +func TestUpdateFilesBeforeReleaseInvalidRegex(t *testing.T) { + path := createTempFile(t, "0.0.0") + pattern := patternForFile(path, "[invalid(", "{{version}}") + err := updateFilesBeforeRelease([]string{pattern}, "1.0.0") + if err == nil { + t.Error("expected error but got none") + } +} + +func TestUpdateFilesBeforeReleaseInvalidVersion(t *testing.T) { + path := createTempFile(t, "0.0.0") + pattern := patternForFile(path, "^.*$", "{{version}}") + err := updateFilesBeforeRelease([]string{pattern}, "invalid-version") + if err == nil { + t.Error("expected error for invalid version but got none") + } +} + +func TestUpdateFilesBeforeReleaseNonExistentFile(t *testing.T) { + err := updateFilesBeforeRelease([]string{"/nonexistent/file:^.*$:{{version}}"}, "1.0.0") + if err == nil { + t.Error("expected error for non-existent file but got none") + } +}