local

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBranches added in v3.5.0

func GetBranches() ([]string, error)

GetBranches gets git branches.

func GetCurrentBranchName

func GetCurrentBranchName() (string, error)

GetCurrentBranchName gets the current branch name.

func GetCurrentBranchPRNumber

func GetCurrentBranchPRNumber() (int, error)

GetCurrentBranchPRNumber gets the current branch PR number.

func GetCurrentPRNumber

func GetCurrentPRNumber(manualNumber int) (int, error)

GetCurrentPRNumber gets the current PR number.

func GetGitRepoRoot

func GetGitRepoRoot() (string, error)

GetGitRepoRoot gets the root of the git repository.

Types

type ByRemoteName

type ByRemoteName Remotes

ByRemoteName sorts remote by name.

func (ByRemoteName) Len

func (r ByRemoteName) Len() int

func (ByRemoteName) Less

func (r ByRemoteName) Less(i, j int) bool

func (ByRemoteName) Swap

func (r ByRemoteName) Swap(i, j int)

type Remote

type Remote struct {
	Name string
	URL  string
}

Remote Git remote model.

type Remotes

type Remotes []Remote

Remotes a list of Remote.

func GetRemotes

func GetRemotes() (Remotes, error)

GetRemotes gets git remotes.

func (Remotes) Find

func (r Remotes) Find(remoteName string) (*Remote, error)

Find a remote by name.

Jump to

Keyboard shortcuts

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