{"modulePath":"github.com/stephansalas/github-pullrequest-resource","version":"v0.0.0-20210914135052-96e572382e95","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package resource\n\n## Functions\n\n```go\nfunc Fatal(doing string, err error)\n```\n\n```go\nfunc Sayf(message string, args ...interface{})\n```\n\n## Types\n\n```go\ntype GitHub interface {\n\tCreatePullRequest(newPullRequest *github.NewPullRequest) (pullRequest *github.PullRequest, responseCode int, err error)\n}\n```\n\n```go\ntype GitHubClient struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGitHubClient(source Source) (*GitHubClient, error)\n```\n\n```go\nfunc (g *GitHubClient) CreatePullRequest(newPullRequest *github.NewPullRequest) (pullRequest *github.PullRequest, responseCode int, err error)\n```\n\n```go\ntype OutCommand struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOutCommand(github GitHub, writer io.Writer) *OutCommand\n```\n\n```go\nfunc (c *OutCommand) Run(request OutRequest) (outResponse OutResponse, err error)\n```\n\n```go\ntype OutRequest struct {\n\tSource Source `json:\"source\"`\n}\n```\n\n```go\nfunc NewOutRequest() OutRequest\n```\n\n```go\ntype OutResponse struct {\n\tPullRequestLink string `json:\"pull_request_link\"`\n}\n```\n\n```go\ntype Source struct {\n\tTitle               string `json:\"title\"`\n\tGitHubAPIURL        string `json:\"github_api_url\"`\n\tOwner               string `json:\"owner\"`\n\tRepository          string `json:\"repository\"`\n\tSourceBranch        string `json:\"sourceBranch\"`\n\tTargetBranch        string `json:\"targetBranch\"`\n\tAccessToken         string `json:\"access_token\"`\n\tIssueRef            int    `json:\"issue_ref\"`\n\tMaintainerCanModify bool   `json:\"maintainer_can_modify\"`\n\n\tInsecure bool `json:\"insecure\"`\n\t// contains filtered or unexported fields\n}\n```\n\n","path":"github.com/stephansalas/github-pullrequest-resource","name":"resource","synopsis":"","isRedistributable":true}
