chglog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StopIteration = "StopIteration"
)

Variables

This section is empty.

Functions

func NewCli

func NewCli() cli.ActionFunc

func OpenRepo

func OpenRepo(repoURL string) *git.Repository

func ResolveTag

func ResolveTag(repo *git.Repository, tag string) (*plumbing.Reference, *object.Commit)

Types

type ArtifactHubChangelogKind

type ArtifactHubChangelogKind string
const (
	// added, changed, deprecated, removed, fixed and security.
	// https://artifacthub.io/docs/topics/annotations/helm/
	KindAdded      ArtifactHubChangelogKind = "added"
	KindChanged    ArtifactHubChangelogKind = "changed"
	KindDeprecated ArtifactHubChangelogKind = "deprecated"
	KindRemoved    ArtifactHubChangelogKind = "removed"
	KindFixed      ArtifactHubChangelogKind = "fixed"
	KindSecurity   ArtifactHubChangelogKind = "security"
)

type ArtifactHubChangelogObject

type ArtifactHubChangelogObject struct {
	Kind        ArtifactHubChangelogKind          `yaml:"kind"`
	Description string                            `yaml:"description"`
	Links       []ArtifactHubChangelogObjectLinks `yaml:"links,omitempty"`
}

func GenerateChangelogForRepo

func GenerateChangelogForRepo(from, to, repoURL string, subdirectories []string) []*ArtifactHubChangelogObject
type ArtifactHubChangelogObjectLinks struct {
	Name string `yaml:"name"`
	Url  string `yaml:"url"`
}

type ArtifactHubChangelogResolverInterface

type ArtifactHubChangelogResolverInterface interface {
	ResolveChangelogEntry() (*ArtifactHubChangelogObject, error)
	// contains filtered or unexported methods
}

type ConventionalCommitsResolver

type ConventionalCommitsResolver struct {
	*object.Commit
}

see e.g.: @commitlint/config-conventional https://www.conventionalcommits.org/en/v1.0.0/#specification

func NewConventionalCommitsResolver

func NewConventionalCommitsResolver(c *object.Commit) *ConventionalCommitsResolver

func (*ConventionalCommitsResolver) ResolveChangelogEntry

func (r *ConventionalCommitsResolver) ResolveChangelogEntry() (*ArtifactHubChangelogObject, error)

type Resolver

type Resolver string
const (
	ConventionalCommits Resolver = "conventional-commits"
)

Jump to

Keyboard shortcuts

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