github

package
v0.0.0-...-a716749 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package github provides a Go API for the GitHub issue tracker. See https://developer.github.com/v3/search/#search-issues.

Index

Constants

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    // in Markdown format
}

type IssuesSearchResult

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

func SearchIssues

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

SearchIssues queries the GitHub issue tracker.

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