Documentation
¶
Index ¶
- Variables
- func DetectPlatform() (string, error)
- func GenerateReleaseNotes(commits []*semrel.Commit, filters *Filters, matchRules []*MatchRule) string
- func NewGithubReleaser(token, owner, repo, branch string) (*githubReleaser, error)
- func NewGitlabReleaser(token, projectID, branch string) (*gitlabReleaser, error)
- type ErrUnsupportedPlatform
- type Filters
- type MatchRule
- type Releaser
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPlatformDetectionFailed = errors.New("failed to detect platform")
Functions ¶
func DetectPlatform ¶
func GenerateReleaseNotes ¶
func NewGithubReleaser ¶
func NewGitlabReleaser ¶
Types ¶
type ErrUnsupportedPlatform ¶
type ErrUnsupportedPlatform struct {
// contains filtered or unexported fields
}
func NewErrUnsupportedPlatform ¶
func NewErrUnsupportedPlatform(platform string) *ErrUnsupportedPlatform
func (*ErrUnsupportedPlatform) Error ¶
func (e *ErrUnsupportedPlatform) Error() string
type Filters ¶
Filters matches types and scopes in conventional commits, and excludes them from release notes.
func (*Filters) MatchScope ¶
type MatchRule ¶
MatchRule holds one regex + replacement template.
func NewMatchRule ¶
NewMatchRule creates a new MatchRule with the given regex pattern and replacement template.
Click to show internal directories.
Click to hide internal directories.