Documentation ¶
Index ¶
- func CreateDraftRelease(c *gitea.Client, owner string, repo string, targetBranch string, title string, ...) (*gitea.Release, error)
- func FillVariables(str string, vars TemplateVariables) string
- func FindReleases(c *gitea.Client, owner string, repo string) (*gitea.Release, *gitea.Release, error)
- func GetRepo(c *gitea.Client, owner string, repoName string) (*gitea.Repository, error)
- func ResolveVersion(cfg *config.RepoConfig, last *gitea.Release, changelog *Changelog) (*semver.Version, error)
- func UpdateExistingDraft(c *gitea.Client, owner string, repo string, draft *gitea.Release, title string, ...) (*gitea.Release, error)
- type Action
- type Changelog
- type TemplateVariables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDraftRelease ¶
func FillVariables ¶
func FillVariables(str string, vars TemplateVariables) string
func FindReleases ¶
func ResolveVersion ¶
func ResolveVersion(cfg *config.RepoConfig, last *gitea.Release, changelog *Changelog) (*semver.Version, error)
ResolveVersion determines the next version to be used for a release depending on the labels used in the pull requests merged after the last release.
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
func (*Action) GetConfigFile ¶
GetConfigFile reads the local configuration file in `.gitea/` in the ref branch (probably main/master)
type Changelog ¶
type Changelog map[string][]*gitea.PullRequest
type TemplateVariables ¶
type TemplateVariables struct {
ReleaseVersion string `var:"$RESOLVED_VERSION"`
}
Click to show internal directories.
Click to hide internal directories.