github

package
v1.5.161 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Overview

Package github implements a GitHub client.

Index

Constants

This section is empty.

Variables

View Source
var NormLogin = strings.ToLower

NormLogin normalizes GitHub login strings

Functions

func New

func New(uri string) (*scm.Client, error)

New returns a new GitHub API client.

func NewDefault

func NewDefault() *scm.Client

NewDefault returns a new GitHub API client using the default api.github.com address.

func NewWebHookService

func NewWebHookService() scm.WebhookService

Types

type Error

type Error struct {
	Message string `json:"message"`
}

Error represents a Github error.

func (*Error) Error

func (e *Error) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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