Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseURL = "https://api.github.com/repos/%s/releases"
Functions ¶
func RemoveBrackets ¶
func ReplaceToBytes ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements drone.Plugin to provide the plugin implementation.
type Release ¶
type Release struct { Id int `json:"id"` Name string `json:"name"` TagName string `json:"tag_name"` Draft bool `json:"draft"` Prerelease bool `json:"prerelease"` PublishedAt time.Time `json:"published_at"` Assets []Asset `json:"assets"` }
func FetchAllReleases ¶
FetchAllReleases will return all releases. The latest release will be at position 0.
func FetchAllStableReleases ¶
FetchAllStableReleases will return all stable releases. The latest release will be at position 0.
func FetchLatestRelease ¶
FetchLatestRelease will simply return the latested release, possibly a pre release.
func FetchLatestStableRelease ¶
FetchLatestStableRelease will return the latest stable release. This will exclude any releases marked as draft, prerelease or containing a pre-release marker in the name
func (Release) ReleaseToVersion ¶
func (r Release) ReleaseToVersion() semver.Version
Click to show internal directories.
Click to hide internal directories.