Documentation
¶
Index ¶
- Constants
- type Inputs
- type PullRequestLabels
- type Tag
- func (t *Tag) GetMajor() int
- func (t *Tag) GetMinor() int
- func (t *Tag) GetPatch() int
- func (t *Tag) Set(name string, value int)
- func (t *Tag) SetMajor(val int)
- func (t *Tag) SetMinor(val int)
- func (t *Tag) SetPatch(val int)
- func (t *Tag) String() string
- func (t *Tag) StringWithPrefix(prefix string) string
Constants ¶
View Source
const ( TagMajorName string = "major" TagMinorName string = "minor" TagPatchName string = "patch" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inputs ¶
type Inputs struct {
GitHubToken string
Owner string
Repository string
PullRequestNumber int
DefaultTag string
TagPrefix string
}
func (Inputs) GetDefaultTag ¶ added in v0.8.1
type PullRequestLabels ¶
func GetPRLabels ¶
func GetPRLabels(labels []*github.Label) PullRequestLabels
GetPRLabels returns a list of labels for a PR
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
func GetNewTag ¶
func GetNewTag(currentVersion string, prLabels PullRequestLabels) (Tag, error)
GetNewTag returns a new tag based on the current tag and the PullRequestLabels
func (*Tag) StringWithPrefix ¶
Click to show internal directories.
Click to hide internal directories.