semrel

package
v2.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 10 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_semrel_structs_proto protoreflect.FileDescriptor

Functions

func GetNewVersion

func GetNewVersion(conf *config.Config, commits []*Commit, latestRelease *Release) string

Types

type Change

type Change struct {
	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 `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Change) Descriptor deprecated

func (*Change) Descriptor() ([]byte, []int)

Deprecated: Use Change.ProtoReflect.Descriptor instead.

func (*Change) GetAnnotations added in v2.7.0

func (x *Change) GetAnnotations() map[string]string

func (*Change) GetMajor

func (x *Change) GetMajor() bool

func (*Change) GetMinor

func (x *Change) GetMinor() bool

func (*Change) GetPatch

func (x *Change) GetPatch() bool

func (*Change) ProtoMessage

func (*Change) ProtoMessage()

func (*Change) ProtoReflect

func (x *Change) ProtoReflect() protoreflect.Message

func (*Change) Reset

func (x *Change) Reset()

func (*Change) String

func (x *Change) String() string

type Commit

type Commit struct {
	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 `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Commit) Descriptor deprecated

func (*Commit) Descriptor() ([]byte, []int)

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetAnnotations added in v2.7.0

func (x *Commit) GetAnnotations() map[string]string

func (*Commit) GetChange

func (x *Commit) GetChange() *Change

func (*Commit) GetMessage

func (x *Commit) GetMessage() string

func (*Commit) GetRaw

func (x *Commit) GetRaw() []string

func (*Commit) GetSHA

func (x *Commit) GetSHA() string

func (*Commit) GetScope

func (x *Commit) GetScope() string

func (*Commit) GetType

func (x *Commit) GetType() string

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

func (x *Commit) ProtoReflect() protoreflect.Message

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

type RawCommit

type RawCommit struct {
	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 `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RawCommit) Descriptor deprecated

func (*RawCommit) Descriptor() ([]byte, []int)

Deprecated: Use RawCommit.ProtoReflect.Descriptor instead.

func (*RawCommit) GetAnnotations added in v2.7.0

func (x *RawCommit) GetAnnotations() map[string]string

func (*RawCommit) GetRawMessage

func (x *RawCommit) GetRawMessage() string

func (*RawCommit) GetSHA

func (x *RawCommit) GetSHA() string

func (*RawCommit) ProtoMessage

func (*RawCommit) ProtoMessage()

func (*RawCommit) ProtoReflect

func (x *RawCommit) ProtoReflect() protoreflect.Message

func (*RawCommit) Reset

func (x *RawCommit) Reset()

func (*RawCommit) String

func (x *RawCommit) String() string

type Release

type Release struct {
	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 `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func GetLatestReleaseFromReleases

func GetLatestReleaseFromReleases(rawReleases []*Release, vrange string) (*Release, error)

func (*Release) Descriptor deprecated

func (*Release) Descriptor() ([]byte, []int)

Deprecated: Use Release.ProtoReflect.Descriptor instead.

func (*Release) GetAnnotations added in v2.7.0

func (x *Release) GetAnnotations() map[string]string

func (*Release) GetSHA

func (x *Release) GetSHA() string

func (*Release) GetVersion

func (x *Release) GetVersion() string

func (*Release) ProtoMessage

func (*Release) ProtoMessage()

func (*Release) ProtoReflect

func (x *Release) ProtoReflect() protoreflect.Message

func (*Release) Reset

func (x *Release) Reset()

func (*Release) String

func (x *Release) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL