local

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentBranchName

func GetCurrentBranchName() (string, error)

GetCurrentBranchName get the current branch name.

func GetCurrentBranchPRNumber

func GetCurrentBranchPRNumber() (int, error)

GetCurrentBranchPRNumber get the current branch PR number.

func GetCurrentPRNumber

func GetCurrentPRNumber(manualNumber int) (int, error)

GetCurrentPRNumber get the current PR number.

func GetGitRepoRoot

func GetGitRepoRoot() (string, error)

GetGitRepoRoot get the root of the git repository.

Types

type ByRemoteName

type ByRemoteName Remotes

ByRemoteName sort 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 get 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