github

package
v0.0.0-...-f1bff1d Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotGitHubURLErr

type NotGitHubURLErr struct{}

func (NotGitHubURLErr) Error

func (NotGitHubURLErr) Error() string

type PRInfo

type PRInfo struct {
	RepoOwner string `json:"repo_owner"`
	RepoName  string `json:"repo_name"`
	Num       int    `json:"num"`
}

Used in CreateSpec messages

type PullRequest

type PullRequest struct {
	Repo   Repo
	Num    int
	Branch string
	Commit string
}

func ParsePullRequestURL

func ParsePullRequestURL(u string) (*PullRequest, error)

GitHub PR URLs look like https://github.com/akitasoftware/superstar/pull/678

type Repo

type Repo struct {
	Owner string
	Name  string
}

func ParseRepoURL

func ParseRepoURL(u string) (*Repo, error)

GitHub Repo URLs look like https://github.com/akitasoftware/superstar

Jump to

Keyboard shortcuts

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