github

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	// contains filtered or unexported fields
}

AuthService manages GitHub user authentication

func NewAuthService

func NewAuthService(host string) (a *AuthService, err error)

NewAuthService constructs a new AuthService

func (*AuthService) InitClient

func (a *AuthService) InitClient() (client *go_github.Client, err error)

InitClient initializes an AuthService instance by loading ~/.config/mcc or basic authentication

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a GitHub OAuth API wrapper

func NewClient

func NewClient(execPath string, host string) (g *Client, err error)

NewClient constructs a new Client

func (*Client) GetIssue

func (g *Client) GetIssue(issueNoRegex string) (issue *go_github.Issue, comments []*go_github.IssueComment, err error)

GetIssue requests an issue and comments by refering current branch name which includes issueID

func (*Client) Init

func (g *Client) Init() (err error)

Init initialize Client

Jump to

Keyboard shortcuts

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