gh

package
v0.0.0-...-aee2e94 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubGateway

type GitHubGateway struct {
	// contains filtered or unexported fields
}

func NewGitHubGateway

func NewGitHubGateway(ctx context.Context, accessToken, apiURL string) (GitHubGateway, error)

func (*GitHubGateway) GetIssues

func (ghg *GitHubGateway) GetIssues() ([]GitHubItem, error)

GetIssues downloads and returns the issues for the user authenticated to c, transformed to GitHubItems.

func (*GitHubGateway) GetNotifications

func (ghg *GitHubGateway) GetNotifications() ([]GitHubItem, error)

func (*GitHubGateway) GetPRs

func (ghg *GitHubGateway) GetPRs() ([]GitHubItem, error)

type GitHubItem

type GitHubItem struct {
	Title   string
	HTMLURL string
	APIURL  string
	K       string
}

GitHubItem is a simple, unified structure we can use to represent issues, PRs and notifications containing only the information the rest of the program requires.

func (GitHubItem) Key

func (item GitHubItem) Key() string

Key meets the Keyed interface used for creating delta operations in github2omnifocus. For the desired state, this is a unique key for the item derived from the GitHub data.

func (GitHubItem) String

func (item GitHubItem) String() string

Jump to

Keyboard shortcuts

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