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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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