cmd

package
v0.0.0-...-db366c9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PreviousCommit string
	Branch         string
	SubPath        string
)
View Source
var (
	CommitBranch   string
	BaseBranch     string
	PrTitle        string
	CommitTitle    string
	GitUser        string
	GitEmail       string
	OutputGitSha   string
	OutputPrNumber string
	OutputPrURL    string
)
View Source
var (
	Path  string
	Host  string
	Owner string
	Repo  string
	Kind  string
)
View Source
var (
	Sha        string
	Ref        string
	Repository string
)

Functions

func CreatePullRequest

func CreatePullRequest(cmd *cobra.Command, args []string) error

func DetermineClonePoint

func DetermineClonePoint(client *scm.Client, repository string, branch string, previousCommit string, subPath string) (string, error)

func DetermineMonoRepoChange

func DetermineMonoRepoChange(credentials string, kind string, host string, owner string, repo string) (string, error)

func DetermineToken

func DetermineToken(credentials string, kind string, host string, owner string, repo string) (string, error)

func FindOpenPullRequestByBranches

func FindOpenPullRequestByBranches(ctx context.Context, head string, base string, scmClient *scm.Client, fullName string) (bool, int, string)

func GetScmClient

func GetScmClient(repositoryURL string) (*scm.Client, string, string, error)

func GetURL

func GetURL(kind string, host string, owner string, repo string) string

func NewMonoRepoChangeCmd

func NewMonoRepoChangeCmd() *cobra.Command

NewMonoRepoChangeCmd creates a new token command.

func NewPrCmd

func NewPrCmd() *cobra.Command

NewPrCmd creates a new token command.

func NewPrCreateCmd

func NewPrCreateCmd() *cobra.Command

NewPrCreateCmd creates a pr_create command.

func NewTagCmd

func NewTagCmd() *cobra.Command

NewTagCmd creates a pr_create command.

func NewTokenCmd

func NewTokenCmd() *cobra.Command

NewTokenCmd creates a new token command.

func NewURLCmd

func NewURLCmd() *cobra.Command

NewURLCmd creates a new cluster command.

func Tag

func Tag(cmd *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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