github

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")
View Source
var ErrUnauthorized = errors.New("unauthorized")

Functions

This section is empty.

Types

type ApiResponse

type ApiResponse struct {
	StatusCode int
	Body       []byte
}

type PullRequestResponse

type PullRequestResponse struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	State string `json:"state"`
	Head  struct {
		Ref string `json:"ref"`
	} `json:"head"`
	HtmlURL string `json:"html_url"`
}

func FindPullRequest

func FindPullRequest(projectPath string, token string, branch string) (PullRequestResponse, error)

type UserResponse

type UserResponse struct {
	ID int `json:"id"`
}

func User

func User(token string) (UserResponse, error)

Jump to

Keyboard shortcuts

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