repo

package
v0.0.0-...-fd9bc54 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfError

func CheckIfError(err error)

CheckIfError ...

func Contains

func Contains(slice []string, item string) bool

Contains ...

func GithubLink(org string, name string) string

GithubLink ...

Types

type CurrentUser

type CurrentUser struct {
	Email string
	Name  string
	Token string
}

CurrentUser ...

type Github

type Github struct {
	// contains filtered or unexported fields
}

Github ...

func NewGithub

func NewGithub(user CurrentUser, org string) Github

NewGithub ...

func (Github) CreatePullRequest

func (g Github) CreatePullRequest(repository string, pr *github.NewPullRequest)

CreatePullRequest ...

type Handler

type Handler struct {
	Base      string
	Workflows []string
}

Handler ...

func NewHandler

func NewHandler(repository string, baseDirectory string) Handler

NewHandler ...

func (Handler) Sync

func (h Handler) Sync(target string)

Sync ...

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

Repo ...

func NewRepo

func NewRepo(org string, name string, user CurrentUser, tmpDirectory string) Repo

NewRepo ...

func (Repo) CommitAndPush

func (r Repo) CommitAndPush(message string, branch string)

CommitAndPush ...

func (Repo) CreateBranch

func (r Repo) CreateBranch(branch string)

CreateBranch ...

func (Repo) GetDefaultBranch

func (r Repo) GetDefaultBranch() string

GetDefaultBranch ...

func (Repo) GetLastCommit

func (r Repo) GetLastCommit() plumbing.Hash

GetLastCommit ...

func (Repo) NeedsCommit

func (r Repo) NeedsCommit() bool

NeedsCommit ...

Jump to

Keyboard shortcuts

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