github

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx *context.Context, token string) *github.Client

NewClient returns a new github client.

Types

type Event

type Event struct {
	Issue       Issue       `json:"issue"`
	PullRequest PullRequest `json:"pull_request"`
}

Event entity.

func GetEvent

func GetEvent() (*Event, error)

GetEvent from GITHUB_EVENT_PATH.

type Issue

type Issue struct {
	Number int `json:"number"`
}

Issue entity.

type PullRequest

type PullRequest struct {
	Number int `json:"number"`
}

PullRequest entity.

Jump to

Keyboard shortcuts

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