gh

package
v0.0.0-...-0b0b839 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 15 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

View Source
const (
	EVT_PULL_REQUEST   = "pull_request"
	EVT_COMMIT_COMMENT = "commit_comment"
)

Variables

This section is empty.

Functions

func GetEvent

func GetEvent(evt string, data io.Reader)

GetEvent

Types

type App

type App struct {
	ClientID     string
	ClientSecret string
	CallbackURL  string
}

App: github App

func (*App) AccessURL

func (a *App) AccessURL(use string) *url.URL

bind or auth

func (*App) AuthURL

func (a *App) AuthURL() string

AuthURL

func (*App) BindURL

func (a *App) BindURL() string

BindURL

func (*App) GetToken

func (a *App) GetToken(code string) (string, error)

GetToken

func (*App) GetUserAccount

func (a *App) GetUserAccount(token string) (*types.GithubAccount, error)

GetUserAccount

type Client

type Client struct {
	*github.Client

	UserName string
}

func NewClientByToken

func NewClientByToken(user, token string) *Client

type CommitPatch

type CommitPatch types.CommitPatch

type FilePatch

type FilePatch types.FilePatch

type Project

type Project struct {
	types.Project `json:",inline" bson:",inline"`
	// contains filtered or unexported fields
}

func (*Project) GetCommitPatch

func (p *Project) GetCommitPatch(sha string) (*CommitPatch, []*FilePatch, error)

Jump to

Keyboard shortcuts

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