github

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VALIDATION_FAILED_MSG = "Validation Failed"
	NO_COMMITS_MSG_PREFIX = "No commits between"
	CODE_INVALID          = "invalid"
)

Variables

This section is empty.

Functions

func RenderPullRequestTpl added in v0.0.2

func RenderPullRequestTpl(initMsg, cs, base, head string, commitLogs string) (string, error)

Types

type Client

type Client struct {
	RawClient rawClient

	ListOptions *github.ListOptions
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, serviceConfig *etc.ServiceConfig) (*Client, error)

func NewClientViaBasicAuth

func NewClientViaBasicAuth(ctx context.Context, serviceConfig *etc.ServiceConfig, user, pass string) (*Client, error)

func (*Client) CreatePullRequest added in v0.0.2

func (c *Client) CreatePullRequest(ctx context.Context, repo string, newPR *service.NewPullRequest) (service.PullRequest, error)

func (*Client) CreateRelease added in v0.0.2

func (c *Client) CreateRelease(ctx context.Context, owner, repo string, newRelease *service.NewRelease) (service.Release, error)

func (*Client) CreateRepository added in v0.0.2

func (c *Client) CreateRepository(ctx context.Context, repo string) (service.Repository, error)

func (*Client) CreateToken

func (c *Client) CreateToken(ctx context.Context) (string, error)

func (*Client) GetCommitsURL added in v0.0.2

func (c *Client) GetCommitsURL(owner, repo string) (string, error)

func (*Client) GetIssueURL

func (c *Client) GetIssueURL(owner, repo string, id int) (string, error)

func (*Client) GetIssues

func (c *Client) GetIssues(ctx context.Context, owner, repo string) (serviceIssues []service.Issue, err error)

func (*Client) GetIssuesURL

func (c *Client) GetIssuesURL(owner, repo string) (string, error)

func (*Client) GetMilestoneURL added in v0.0.2

func (c *Client) GetMilestoneURL(owner, repo string, id int) (string, error)

func (*Client) GetMilestonesURL added in v0.0.2

func (c *Client) GetMilestonesURL(owner, repo string) (string, error)

func (*Client) GetProjectURL added in v0.0.2

func (c *Client) GetProjectURL(owner, repo string, id int) (string, error)

func (*Client) GetProjectsURL added in v0.0.2

func (c *Client) GetProjectsURL(owner, repo string) (string, error)

func (*Client) GetPullRequestURL

func (c *Client) GetPullRequestURL(owner, repo string, id int) (string, error)

func (*Client) GetPullRequests

func (c *Client) GetPullRequests(ctx context.Context, owner, repo string) (servicePullRequests []service.PullRequest, err error)

func (*Client) GetPullRequestsURL

func (c *Client) GetPullRequestsURL(owner, repo string) (string, error)

func (*Client) GetRepository

func (c *Client) GetRepository(ctx context.Context, owner, repo string) (service.Repository, error)

func (*Client) GetRepositoryURL

func (c *Client) GetRepositoryURL(owner, repo string) (string, error)

func (*Client) GetWikisURL added in v0.0.2

func (c *Client) GetWikisURL(owner, repo string) (string, error)

type Issue

type Issue struct {
	*github.Issue
}

type PullRequest

type PullRequest struct {
	*github.PullRequest
}

type RawClient added in v0.0.2

type RawClient struct {
	*github.Client
}

func (*RawClient) GetAuthorizations added in v0.0.2

func (r *RawClient) GetAuthorizations() authorizationsService

func (*RawClient) GetIssues added in v0.0.2

func (r *RawClient) GetIssues() issuesService

func (*RawClient) GetPullRequests added in v0.0.2

func (r *RawClient) GetPullRequests() pullRequestsService

func (*RawClient) GetRepositories added in v0.0.2

func (r *RawClient) GetRepositories() repositoriesService

func (*RawClient) SetBaseURL added in v0.0.2

func (r *RawClient) SetBaseURL(baseUrl *url.URL)

type Repository

type Repository struct {
	*github.Repository
}

Jump to

Keyboard shortcuts

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