command

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FeatureDeleteStaleCommand added in v1.1.0

func FeatureDeleteStaleCommand(ctx context.Context, cfg config.Config, repo *git.Repository, maxAge time.Duration) (string, error)

nolint:gocognit,cyclop // ignore

func FeatureNewCommand added in v1.1.0

func FeatureNewCommand(ctx context.Context, cfg config.Config, repo *git.Repository, group, app, tag, feature string) (string, error)

FeatureNewCommand is similar to NewCommand but creates a PR with a temporary deployment of the application. A totally new application will be created instead of overriding the existing application deployment.

func NewCommand

func NewCommand(ctx context.Context, cfg config.Config, repo *git.Repository, group, app, tag string) (string, error)

NewCommand creates the initial PR which is going to be merged to the first environment. The main difference to PromoteCommand is that it does not use a previous PR to create the first PR.

func PromoteCommand

func PromoteCommand(ctx context.Context, cfg config.Config, repo *git.Repository) (string, error)

PromoteCommand is run after a PR is merged. It creates a new PR for the next environment if there is one present.

func Run added in v0.0.7

func Run(ctx context.Context, args []string) (string, error)

nolint:funlen,cyclop,gocognit // ignore

func StatusCommand

func StatusCommand(ctx context.Context, cfg config.Config, repo *git.Repository) (string, error)

StatusCommand is run inside a PR to check if the PR can be merged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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