mageutils

package
v1.0.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckoutReleaseBranch

func CheckoutReleaseBranch(branchName string) error

CheckoutReleaseBranch creates if not exists a release branch and then checkout @TODO validate release branch name with regex

func CherryPick

func CherryPick() error

CherryPick Check for the dependencies than exec the cherry pick. When the workflow it's triggered to run on main, the commit it's going to be made directly to the main branch, so it's not needed to run this. Output: cherryPickBranchName: name of the branch that the updating versioning files was cherry picked. commitShaToPick: commit sha that was cherry picked to the new branch.

func CreateAlphaTag

func CreateAlphaTag() error

CreateAlphaTag executes "git", "tag", "-f", "-s", "alpha", "-m", "alpha"

func CreateAndPushTag added in v1.0.23

func CreateAndPushTag(tag string) (err error)

CreateAndPushTag create and push a new given tag executing "git tag -s tag -m release+tag" and "git push --tags"

func CreateLocalTag

func CreateLocalTag(tag string) (err error)

CreateLocalTag executes "git", "tag", "-s", tag, "-m", "release "+tag

func DefaultGitConfig

func DefaultGitConfig() error

DefaultGitConfig sets horusec as global git user and horusec@zup.com.br as global git email

func GitConfig

func GitConfig(email, name string) error

GitConfig configures global email and user for git

func GitPushAll

func GitPushAll() error

GitPushAll executes "git", "push", "--all"

func GitPushAlpha

func GitPushAlpha() error

GitPushAlpha executes "git", "push", "origin", "-f", "alpha"

func RemoveTag added in v1.0.23

func RemoveTag(tag string) (err error)

RemoveTag remove tag locally and in the origin "git tag -d tag" and "git push --delete origin tag"

func UpVersions

func UpVersions(releaseType string) error

UpVersions command to up latest version of the repository to the next, including the beta and rc next versions. Outputs: actualReleaseVersion: represents the actual version of the repository (v1.0.0). nextReleaseVersion: represents the next release version (v1.1.0). nextReleaseVersionStripped: represents the next release version without the v prefix (1.1.0). nextReleaseBranchName: represents the next release branch name (release/v1.1). nextBetaVersion: represents the next beta release tag name (v1.1.0-beta.1). nextRCVersion: represents the next rc release tag name (v1.1.0-rc.1). actualBetaVersion: represents the actual beta release tag name (v1.0.0-beta.1). actualRCVersion: represents the actual rc release tag name (v1.0.0-rc.1).

func WriteCosignKeyToFile

func WriteCosignKeyToFile() error

WriteCosignKeyToFile executes "echo "$COSIGN_KEY" > $COSIGN_KEY_LOCATION"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL