commands

package
v0.0.0-...-05593c5 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commander

type Commander struct {
	Config
	Dependencies
}

Commander is a bot commander.

func NewCommander

func NewCommander(cfg Config, deps Dependencies) *Commander

NewCommander creates a new Commander

func (*Commander) Help

func (c *Commander) Help(ctx context.Context, owner string, repo string, number int)

Help displays information about what commands are available and their usage.

func (*Commander) Test

func (c *Commander) Test(ctx context.Context, owner string, repoURL string, repo string, number int, branch string, commentID int)

Test will deploy the pull request from the context of the comment made.

type Config

type Config struct {
	Auth      auth.Config
	InfraRepo string
}

Config has the configuration options for the commander

type Dependencies

type Dependencies struct {
	Logger      zerolog.Logger
	Commenter   providers.Commenter
	Executioner providers.Executer
	Converter   providers.EnvironmentConverter
}

Dependencies defines the dependencies of this command

Jump to

Keyboard shortcuts

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