github

package
v1.5.226 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 21 Imported by: 13

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 added in v1.5.152

func NewWebHookService() scm.WebhookService

NewWebHookService creates a new instance of the webhook service without the rest of the client

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