Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitHub ¶
type GitHub interface {
CreatePullRequest(newPullRequest *github.NewPullRequest) (pullRequest *github.PullRequest, responseCode int, err error)
}
type GitHubClient ¶
type GitHubClient struct {
// contains filtered or unexported fields
}
func NewGitHubClient ¶
func NewGitHubClient(source Source) (*GitHubClient, error)
func (*GitHubClient) CreatePullRequest ¶
func (g *GitHubClient) CreatePullRequest(newPullRequest *github.NewPullRequest) (pullRequest *github.PullRequest, responseCode int, err error)
type OutCommand ¶
type OutCommand struct {
// contains filtered or unexported fields
}
func NewOutCommand ¶
func NewOutCommand(github GitHub, writer io.Writer) *OutCommand
func (*OutCommand) Run ¶
func (c *OutCommand) Run(request OutRequest) (outResponse OutResponse, err error)
type OutRequest ¶
type OutRequest struct {
Source Source `json:"source"`
}
func NewOutRequest ¶
func NewOutRequest() OutRequest
type OutResponse ¶
type OutResponse struct {
PullRequestLink string `json:"pull_request_link"`
}
type Source ¶
type Source struct {
Title string `json:"title"`
GitHubAPIURL string `json:"github_api_url"`
Owner string `json:"owner"`
Repository string `json:"repository"`
SourceBranch string `json:"sourceBranch"`
TargetBranch string `json:"targetBranch"`
AccessToken string `json:"access_token"`
IssueRef int `json:"issue_ref"`
MaintainerCanModify bool `json:"maintainer_can_modify"`
Insecure bool `json:"insecure"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.