release

package
v0.68.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultReleasesSentinel = "\n## <a id='releases'></a> Releases\n\n"

Variables

This section is empty.

Functions

func DefaultNotesTemplate

func DefaultNotesTemplate() string

func DefaultTemplateFuncs

func DefaultTemplateFuncs(t *template.Template) *template.Template

Types

type ComponentData

type ComponentData struct {
	component.Lock
	Releases []*github.RepositoryRelease
}

func (ComponentData) HasReleaseNotes

func (cd ComponentData) HasReleaseNotes() bool

type IssuesQuery

type IssuesQuery struct {
	IssueIDs       []string `` /* 149-byte string literal not displayed */
	IssueMilestone string   `` /* 130-byte string literal not displayed */
	IssueLabels    []string `long:"github-issue-label"     short:"l" description:"issue labels to add to issues query"`
	IssueTitleExp  string   `` /* 328-byte string literal not displayed */
}

func (IssuesQuery) Exp

func (q IssuesQuery) Exp() (*regexp.Regexp, error)

type NotesData

type NotesData struct {
	Version     *semver.Version
	ReleaseDate time.Time

	Issues     []*github.Issue
	Components []ComponentData
	Bumps      component.BumpList

	Stemcell cargo.Stemcell
}

func FetchNotesData

func FetchNotesData(ctx context.Context, repo *git.Repository, client *github.Client, tileRepoOwner, tileRepoName, kilnfilePath, initialRevision, finalRevision string, issuesQuery IssuesQuery) (NotesData, error)

func (NotesData) HasComponentReleases

func (notes NotesData) HasComponentReleases() bool

func (NotesData) WriteVersionNotes

func (notes NotesData) WriteVersionNotes() (VersionNote, error)

type NotesPage

type NotesPage struct {
	Exp *regexp.Regexp

	Prefix, Suffix string
	Releases       []VersionNote
}

func ParseNotesPage

func ParseNotesPage(input string) (NotesPage, error)

func ParseNotesPageWithExpressionAndReleasesSentinel

func ParseNotesPageWithExpressionAndReleasesSentinel(input, releaseRegularExpression, releasesSentinel string) (NotesPage, error)

func (*NotesPage) Add

func (page *NotesPage) Add(versionNote VersionNote) error

func (*NotesPage) WriteTo

func (page *NotesPage) WriteTo(w io.Writer) (int64, error)

type VersionNote

type VersionNote struct {
	Version string
	Notes   string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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