mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 15:53:07 +08:00

* Add GenerateVersions as BeforeFunc * Delete gen-version * Fix lint * Get build id from env var
25 lines
515 B
Go
25 lines
515 B
Go
package config
|
|
|
|
// VersionMode defines the source event that created a release or published version
|
|
type VersionMode string
|
|
|
|
const (
|
|
MainMode VersionMode = "main"
|
|
TagMode VersionMode = "release"
|
|
ReleaseBranchMode VersionMode = "branch"
|
|
PullRequestMode VersionMode = "pull_request"
|
|
CustomMode VersionMode = "custom"
|
|
)
|
|
|
|
const (
|
|
Tag = "tag"
|
|
PullRequest = "pull_request"
|
|
Push = "push"
|
|
Custom = "custom"
|
|
Promote = "promote"
|
|
)
|
|
|
|
const (
|
|
MainBranch = "main"
|
|
)
|