utils

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupBranch

func LookupBranch(name string) (string, error)

LookupBranch returns the target branch for the given repository

func LookupReviewers

func LookupReviewers(name string) []string

LookupReviewers returns the list of reviewers for the given repository

func ParseRepo

func ParseRepo(repo string) (host, project, name string)

ParseRepo splits a repo identifier into its component parts

func RepoPath

func RepoPath(repo string) string

RepoPath returns the full repository path for the given name

func RepoURL

func RepoURL(repo string) string

RepoURL returns the repository remote url for the given name

func ValidateBranch

func ValidateBranch(repo string, ch chan<- string) error

ValidateBranch returns an error if the current git branch is the source branch

func ValidateRequiredConfig

func ValidateRequiredConfig(opts ...string) error

ValidateRequiredConfig checks viper and returns an error if a key isn't set

Types

This section is empty.

Jump to

Keyboard shortcuts

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