releaser

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 22 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git added in v1.1.0

type Git interface {
	Head(workingDir string) (string, error)
	AddWorktree(workingDir string, commitIsh string) (string, error)
	RemoveWorktree(workingDir string, path string) error
	Add(workingDir string, args ...string) error
	Commit(workingDir string, message string) error
	Push(workingDir string, args ...string) error
	Pull(workingDir string, args ...string) error
	GetPushURL(remote string, token string) (string, error)
}

type GitHub

type GitHub interface {
	CreateSignedCommit(ctx context.Context, branch, expectedHead, path, message string, contents []byte) error
	CreateRelease(ctx context.Context, input *github.Release) error
	GetRelease(ctx context.Context, tag string) (*github.Release, error)
	ReplaceReleaseAssets(ctx context.Context, input *github.Release) (bool, error)
	CreatePullRequest(owner string, repo string, message string, head string, base string) (string, error)
	GenerateReleaseNotes(ctx context.Context, tag string, previousTag string, commit string) (string, error)
	ListTagsWithPrefix(ctx context.Context, prefix string) ([]string, error)
}

GitHub contains the functions necessary for interacting with GitHub release objects

type Releaser

type Releaser struct {
	// contains filtered or unexported fields
}

func NewReleaser

func NewReleaser(config *config.Options, github GitHub, git Git) *Releaser

func (*Releaser) CreateReleases

func (r *Releaser) CreateReleases() error

CreateReleases finds and uploads Helm chart packages to GitHub

func (*Releaser) UpdateIndexFile

func (r *Releaser) UpdateIndexFile() (bool, error)

UpdateIndexFile updates the index.yaml file for a given Git repo

Jump to

Keyboard shortcuts

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