github

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(ctx context.Context) *github.Client

func ParseOwnerRepo

func ParseOwnerRepo(Url string) (owner, repo string)

func RespMiddleware

func RespMiddleware(resp *github.Response)

Types

type Issue

type Issue struct {
	Title    string    `json:"title"`
	URL      string    `json:"url"`
	ShortURL string    `json:"short_url"`
	Number   int       `json:"number"`
	State    string    `json:"state"`
	Updated  time.Time `json:"updated"`
	Created  time.Time `json:"created"`
	Comments int       `json:"comments"`
	HtmlURL  string    `json:"html_url"`
	Open     bool      `json:"opened_issue"`
	IsPR     bool      `json:"is_pr"`
	Merged   bool      `json:"merged"` // only for PRs
	MergedAt time.Time `json:"merged_at"`
	IsUpdate bool      `json:"is_update"`
}

type PR

type PR struct {
	Title    string    `json:"title"`
	URL      string    `json:"url"`
	HtmlURL  string    `json:"html_url"`
	Number   int       `json:"number"`
	Date     time.Time `json:"date"`
	IssueURL string    `json:"issue_url"`
	Body     string    `json:"body"`
}

type Release

type Release struct {
	Version     string    `json:"version"`
	ID          int64     `json:"ID"`
	Date        time.Time `json:"date"`
	Description string    `json:"description"`
	URL         string    `json:"url"`
	ShortURL    string    `json:"short_url"`
	HtmlURL     string    `json:"html_url"`
	Name        string    `json:"name"`
	TagName     string    `json:"tag_name"`
}

Jump to

Keyboard shortcuts

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