github

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: MPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubRepo

type GithubRepo struct {
	Name         string
	Owner        string
	PullRequests []*ghb.PullRequest
	RemoteRepo   *ghb.Repository
	// contains filtered or unexported fields
}

func NewGithubRepo

func NewGithubRepo(name, owner, apiKey, baseURL, uploadURL string) *GithubRepo

func (*GithubRepo) IssueCount

func (repo *GithubRepo) IssueCount() int

func (*GithubRepo) Open

func (repo *GithubRepo) Open()

func (*GithubRepo) PullRequestCount

func (repo *GithubRepo) PullRequestCount() int

func (*GithubRepo) Refresh

func (repo *GithubRepo) Refresh()

Refresh reloads the github data via the Github API

func (*GithubRepo) StarCount

func (repo *GithubRepo) StarCount() int

type Settings

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

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Widget

type Widget struct {
	wtf.MultiSourceWidget
	wtf.KeyboardWidget
	wtf.TextWidget

	GithubRepos []*GithubRepo
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) *Widget

func (*Widget) HelpText added in v0.10.0

func (widget *Widget) HelpText() string

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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