Documentation ¶
Index ¶
- func ApplyChange(version *semver.Version, change Change, allowInitialDevelopmentVersions bool) *semver.Version
- func GetChangelog(commits []*Commit, latestRelease *Release, newVersion *semver.Version) string
- func GetNewVersion(conf *config.Config, commits []*Commit, latestRelease *Release) *semver.Version
- type Change
- type Commit
- type GitHubRepository
- func (repo *GitHubRepository) CreateRelease(changelog string, newVersion *semver.Version, prerelease bool, ...) error
- func (repo *GitHubRepository) GetCommits(sha string) ([]*Commit, error)
- func (repo *GitHubRepository) GetInfo() (string, bool, error)
- func (repo *GitHubRepository) GetLatestRelease(vrange string, re *regexp.Regexp) (*Release, error)
- func (repo *GitHubRepository) Owner() string
- func (repo *GitHubRepository) Provider() string
- func (repo *GitHubRepository) Repo() string
- type GitLabRepository
- func (repo *GitLabRepository) CreateRelease(changelog string, newVersion *semver.Version, prerelease bool, ...) error
- func (repo *GitLabRepository) GetCommits(sha string) ([]*Commit, error)
- func (repo *GitLabRepository) GetInfo() (string, bool, error)
- func (repo *GitLabRepository) GetLatestRelease(vrange string, re *regexp.Regexp) (*Release, error)
- func (repo *GitLabRepository) Owner() string
- func (repo *GitLabRepository) Provider() string
- func (repo *GitLabRepository) Repo() string
- type Release
- type Releases
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyChange ¶
func GetChangelog ¶
Types ¶
type Change ¶
type Change struct {
Major, Minor, Patch bool
}
func CalculateChange ¶ added in v1.20.0
type GitHubRepository ¶ added in v1.20.0
type GitHubRepository struct { Ctx context.Context Client *github.Client // contains filtered or unexported fields }
func NewGitHubRepository ¶ added in v1.20.0
func NewGitHubRepository(ctx context.Context, gheHost, slug, token string) (*GitHubRepository, error)
func (*GitHubRepository) CreateRelease ¶ added in v1.20.0
func (*GitHubRepository) GetCommits ¶ added in v1.20.0
func (repo *GitHubRepository) GetCommits(sha string) ([]*Commit, error)
func (*GitHubRepository) GetInfo ¶ added in v1.20.0
func (repo *GitHubRepository) GetInfo() (string, bool, error)
func (*GitHubRepository) GetLatestRelease ¶ added in v1.20.0
func (*GitHubRepository) Owner ¶ added in v1.20.0
func (repo *GitHubRepository) Owner() string
func (*GitHubRepository) Provider ¶ added in v1.20.0
func (repo *GitHubRepository) Provider() string
func (*GitHubRepository) Repo ¶ added in v1.20.0
func (repo *GitHubRepository) Repo() string
type GitLabRepository ¶ added in v1.20.0
func NewGitLabRepository ¶ added in v1.20.0
func (*GitLabRepository) CreateRelease ¶ added in v1.20.0
func (*GitLabRepository) GetCommits ¶ added in v1.20.0
func (repo *GitLabRepository) GetCommits(sha string) ([]*Commit, error)
func (*GitLabRepository) GetInfo ¶ added in v1.20.0
func (repo *GitLabRepository) GetInfo() (string, bool, error)
func (*GitLabRepository) GetLatestRelease ¶ added in v1.20.0
func (*GitLabRepository) Owner ¶ added in v1.20.0
func (repo *GitLabRepository) Owner() string
func (*GitLabRepository) Provider ¶ added in v1.20.0
func (repo *GitLabRepository) Provider() string
func (*GitLabRepository) Repo ¶ added in v1.20.0
func (repo *GitLabRepository) Repo() string
type Repository ¶
type Repository interface { GetInfo() (string, bool, error) GetCommits(sha string) ([]*Commit, error) GetLatestRelease(vrange string, re *regexp.Regexp) (*Release, error) CreateRelease(changelog string, newVersion *semver.Version, prerelease bool, branch, sha string) error Owner() string Repo() string Provider() string }
Click to show internal directories.
Click to hide internal directories.