Documentation ¶
Overview ¶
Package release implements the gitlab-release command. It provides functions to sync tags in your git repository and a changelog in Keep a Changelog format with releases of your GitLab project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAllExcept ¶
DeleteAllExcept deletes all releases which exist in the GitLab project but are not listed in releases.
func Sync ¶
Sync syncs tags in a git repository and a changelog in Keep a Changelog format with releases of a GitLab project. It creates any missing release, it updates existing releases, and it deletes and releases which do not exist anymore.
func Upsert ¶
func Upsert( config *Config, client *gitlab.Client, release Release, releasedAt *time.Time, milestones []string, packages []Package, images []string, ) errors.E
Upsert creates or updates a release for the GitLab project given release information, milestones associated with the release, packages associated with the release, and Docker images associated with the release.
Types ¶
type Config ¶
type Config struct { ChangeTo kong.ChangeDirFlag `` /* 324-byte string literal not displayed */ Version kong.VersionFlag `help:"Show program's version and exit." short:"V"` Project string `` /* 229-byte string literal not displayed */ BaseURL string `` /* 354-byte string literal not displayed */ Token string `` /* 324-byte string literal not displayed */ Changelog string `` /* 324-byte string literal not displayed */ NoCreate bool `help:"Only update or remove releases, do not create them." short:"U"` }
Config provides configuration. It is used as configuration for Kong command-line parser as well.
type Package ¶
type Package struct { ID int Generic bool WebPath string Name string Version string Files []string }
Package describes a GitLab project's package. Generic packages have files which are listed directly, while non-generic packages have a web path to which we just link.
See: https://docs.gitlab.com/ee/user/packages/package_registry/
See: https://docs.gitlab.com/ee/user/packages/generic_packages/index.html
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
gitlab-release
Command gitlab-release syncs tags in your git repository and a changelog in Keep a Changelog format with releases of your GitLab project.
|
Command gitlab-release syncs tags in your git repository and a changelog in Keep a Changelog format with releases of your GitLab project. |