Documentation
¶
Index ¶
- Constants
- func RenderPullRequestTpl(initMsg, cs, base, head string, commitLogs string) (string, error)
- type Client
- func (c *Client) CreatePullRequest(ctx context.Context, repo string, newPR *service.NewPullRequest) (service.PullRequest, error)
- func (c *Client) CreateRelease(ctx context.Context, owner, repo string, newRelease *service.NewRelease) (service.Release, error)
- func (c *Client) CreateRepository(ctx context.Context, repo string) (service.Repository, error)
- func (c *Client) CreateToken(ctx context.Context) (string, error)
- func (c *Client) GetCommitsURL(owner, repo string) (string, error)
- func (c *Client) GetIssueURL(owner, repo string, id int) (string, error)
- func (c *Client) GetIssues(ctx context.Context, owner, repo string) (serviceIssues []service.Issue, err error)
- func (c *Client) GetIssuesURL(owner, repo string) (string, error)
- func (c *Client) GetMilestoneURL(owner, repo string, id int) (string, error)
- func (c *Client) GetMilestonesURL(owner, repo string) (string, error)
- func (c *Client) GetProjectURL(owner, repo string, id int) (string, error)
- func (c *Client) GetProjectsURL(owner, repo string) (string, error)
- func (c *Client) GetPullRequestURL(owner, repo string, id int) (string, error)
- func (c *Client) GetPullRequests(ctx context.Context, owner, repo string) (servicePullRequests []service.PullRequest, err error)
- func (c *Client) GetPullRequestsURL(owner, repo string) (string, error)
- func (c *Client) GetRepository(ctx context.Context, owner, repo string) (service.Repository, error)
- func (c *Client) GetRepositoryURL(owner, repo string) (string, error)
- func (c *Client) GetWikisURL(owner, repo string) (string, error)
- type Issue
- type PullRequest
- type RawClient
- type Repository
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 ¶
Types ¶
type Client ¶
type Client struct {
RawClient rawClient
ListOptions *github.ListOptions
// contains filtered or unexported fields
}
func NewClientViaBasicAuth ¶
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 (*Client) CreateRepository ¶ added in v0.0.2
func (*Client) GetCommitsURL ¶ added in v0.0.2
func (*Client) GetIssueURL ¶
func (*Client) GetMilestoneURL ¶ added in v0.0.2
func (*Client) GetMilestonesURL ¶ added in v0.0.2
func (*Client) GetProjectURL ¶ added in v0.0.2
func (*Client) GetProjectsURL ¶ added in v0.0.2
func (*Client) GetPullRequestURL ¶
func (*Client) GetPullRequests ¶
func (*Client) GetPullRequestsURL ¶
func (*Client) GetRepository ¶
func (*Client) GetRepositoryURL ¶
type PullRequest ¶
type PullRequest struct {
*github.PullRequest
}
type RawClient ¶ added in v0.0.2
func (*RawClient) GetAuthorizations ¶ added in v0.0.2
func (r *RawClient) GetAuthorizations() authorizationsService
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
type Repository ¶
type Repository struct {
*github.Repository
}
Click to show internal directories.
Click to hide internal directories.