resource

package module
v0.0.0-...-96e5723 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

github-pullrequest-resource

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(doing string, err error)

func Sayf

func Sayf(message string, args ...interface{})

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
}

Directories

Path Synopsis
cmd
check command
in command
out command

Jump to

Keyboard shortcuts

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