github

package
v0.0.0-...-a981ce0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CLIInstallationInstructions = "https://cli.github.com"
View Source
const UsernameConfigKey = "github.username"

Variables

This section is empty.

Functions

func CLIExists

func CLIExists() bool

CLIExists returns true if the "gh" app exists.

func OpenPR

func OpenPR(branch string) error

OpenPR opens the PR for the given branch. Reference: https://cli.github.com/manual/gh_pr_view

Types

type PullRequest

type PullRequest struct {
	Reviewers string
	Base      string
	Body      string
	Title     string
	Template  string
	Draft     bool
}

PullRequest contains GitHub Pull Request data.

func NewPr

func NewPr(issue issues.Issue, baseBranch, reviewers string, draft bool) (PullRequest, error)

NewPr create the Pull Request data structure ready to create a PR on GitHub.

func (*PullRequest) Create

func (p *PullRequest) Create() error

Create a Pull Request on GitHub. Reference: https://cli.github.com/manual/gh_pr_create

Jump to

Keyboard shortcuts

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