configuration

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_NAME = "changelog"

Variables

This section is empty.

Functions

func DefaultFileName

func DefaultFileName() string

func DefaultFilePath

func DefaultFilePath() (string, error)

func DefaultFolderPath

func DefaultFolderPath() (string, error)

Types

type Command

type Command struct {
	RepositoryName      string
	From                string
	To                  string
	VersionName         string
	Date                time.Time
	RepositoryLocalPath string
	MergeStrategy       string
}

type File

type File struct {
	General    General
	Github     GitHub
	Repository []GitRepository
}

func (File) FindRepository

func (f File) FindRepository(name string) (*GitRepository, bool)

type General

type General struct {
	MergeStrategy string
	BaseBranch    string
}

type GitHub

type GitHub struct {
	Token string
}

type GitRepository

type GitRepository struct {
	Name          string
	BaseBranch    string
	MergeStrategy string
}

type ValidatedConfig

type ValidatedConfig struct {
	From         git.Reference
	To           git.Reference
	VersionName  string
	Date         time.Time
	CommitParser parser.Parser
	Formatter    formatter.Formatter
	Repository   git.Git
	BugTracker   bugtracker.BugTracker
}

func Validate

func Validate(file File, command Command) (*ValidatedConfig, error)

func (*ValidatedConfig) Equal

func (c *ValidatedConfig) Equal(other *ValidatedConfig) bool

Jump to

Keyboard shortcuts

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