github

package
v0.0.0-...-6ed33b8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const APIURL = "https://api.github.com"
View Source
const IssuesURL = "https://api.github.com/search/issues"

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	Number    int
	HTMLURL   string `json:"html_url"`
	Title     string
	State     string
	User      *User
	CreatedAt time.Time `json:"created_at"`
	Body      string
}

func EditIssue

func EditIssue(owner, repo, number string, fields map[string]string) (*Issue, error)

func GetIssue

func GetIssue(owner string, repo string, number string) (*Issue, error)

func GetIssues

func GetIssues(owner string, repo string) ([]Issue, error)

func (Issue) CacheURL

func (i Issue) CacheURL() string

type IssuesSearchResult

type IssuesSearchResult struct {
	TotalCount int `json:"total_count"`
	Items      []*Issue
}

func SearchIssues

func SearchIssues(terms []string) (*IssuesSearchResult, error)

type User

type User struct {
	Login   string
	HTMLURL string `json:"html_url"`
}

Jump to

Keyboard shortcuts

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