github

package
v0.0.0-...-3c15023 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	PushNewFileToBranch(commit *GitCommit) error
	CreateNewPullRequest(commit *GitCommit) error
}

func NewClient

func NewClient(org, repo, token, user string) Client

type File

type File struct {
	Name    string
	Path    string
	Content []byte
}

func (File) FullPath

func (f File) FullPath() string

type GitCommit

type GitCommit struct {
	CommitAuthorName   string
	CommitAuthorEmail  string
	Branch             string
	FileName           string
	FileContent        string
	Files              []*File
	CommitMessage      string
	PullRequestMessage string
	PullRequestTitle   string
}

func NewGitCommit

func NewGitCommit(files []*File, message string) *GitCommit

type Github

type Github struct {
	Organization string
	Repo         string
	Token        string
	User         string
}

Directories

Path Synopsis
Package mock_github is a generated GoMock package.
Package mock_github is a generated GoMock package.

Jump to

Keyboard shortcuts

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