Help us shape the future of Go! Take the 2026 Go Developer Survey

repository

package
v0.2.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectMatchingOriginRepo added in v0.2.12

func DetectMatchingOriginRepo(baseFolder, targetFolder string) (string, bool)

DetectMatchingOriginRepo reads Git metadata from two checkout folders and returns owner/repo when both checkouts have the same origin remote.

Types

type Selector

type Selector struct {
	Repo  string
	Regex *regexp.Regexp
	// IsAutoDetected reports whether Repo was inferred from the checkout's origin
	// remote rather than provided explicitly via --repo / --repo-regex.
	IsAutoDetected bool
}

func NewSelector

func NewSelector(repo, regex string) (*Selector, error)

func (*Selector) Matches

func (s *Selector) Matches(repoURL string) bool

func (*Selector) String

func (s *Selector) String() string

Jump to

Keyboard shortcuts

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