create

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 47 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ReleaseName = `{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}`

	SpecName    = `{{ .Chart.Name }}`
	SpecVersion = `{{ .Chart.Version }}`

	ReleaseCrdYaml = `` /* 524-byte string literal not displayed */

)

Variables

View Source
var (
	AccessDescription = `` /* 490-byte string literal not displayed */

	GitHubIssueRegex = regexp.MustCompile(`\B#\d+\b`)
	JIRAIssueRegex   = regexp.MustCompile(`\b[A-Z][A-Z0-9_]+-\d+\b`)
)

Functions

func FindIssueTracker added in v0.1.0

func FindIssueTracker(g gitclient.Interface, jxClient jxc.Interface, ns, dir, owner, repo string) (*jxcore.IssueTracker, error)

FindIssueTracker finds the issue tracker from the settings in current repo as well as sourcerepositories and requirements from cluster repo

Types

type Options

type Options struct {
	options.BaseOptions

	ScmFactory    scmhelpers.Options
	GitClient     gitclient.Interface
	CommandRunner cmdrunner.CommandRunner
	JXClient      jxc.Interface

	Namespace                string
	BuildNumber              string
	PreviousRevision         string
	PreviousDate             string
	CurrentRevision          string
	TagPrefix                string
	TemplatesDir             string
	ReleaseYamlFile          string
	CrdYamlFile              string
	Version                  string
	Build                    string
	Header                   string
	HeaderFile               string
	Footer                   string
	FooterFile               string
	OutputMarkdownFile       string
	StatusPath               string
	ChangelogSeparator       string
	ChangelogOutputSeparator string
	IncludePRChangelog       bool
	OverwriteCRD             bool
	GenerateCRD              bool
	GenerateReleaseYaml      bool
	ConditionalRelease       bool
	UpdateRelease            bool
	NoReleaseInDev           bool
	IncludeMergeCommits      bool
	FailIfFindCommits        bool
	Draft                    bool
	Prerelease               bool
	State                    State
	ExcludeRegexp            string
	CompiledExcludeRegexp    *regexp.Regexp
}

Options contains the command line flags

func NewCmdChangelogCreate

func NewCmdChangelogCreate() (*cobra.Command, *Options)

NewCmdChangelogCreate creates the command and options

func (*Options) CreateIssueProvider

func (o *Options) CreateIssueProvider() (issues.IssueProvider, error)

CreateIssueProvider creates the issue provider

func (*Options) Git

func (o *Options) Git() gitclient.Interface

func (*Options) Run

func (o *Options) Run() error

func (*Options) Validate

func (o *Options) Validate() error

type State

type State struct {
	Tracker         issues.IssueProvider
	FoundIssueNames map[string]bool
	LoggedIssueKind bool
	Release         *v1.Release
}

Jump to

Keyboard shortcuts

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