Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct { Name string Owner string PullRequests []*ghb.PullRequest RemoteRepo *ghb.Repository Err error // contains filtered or unexported fields }
Repo defines a new GitHub Repo structure
func NewGithubRepo ¶
NewGithubRepo returns a new Github Repo with a name, owner, apiKey, baseURL and uploadURL
func (*Repo) IssueCount ¶
IssueCount return the total amount of issues as an int
func (*Repo) Open ¶
func (repo *Repo) Open()
Open will open the GitHub Repo URL using the utils helper
func (*Repo) OpenIssues ¶
func (repo *Repo) OpenIssues()
OpenIssues will open the GitHub Issues URL using the utils helper
func (*Repo) OpenPulls ¶
func (repo *Repo) OpenPulls()
OpenPulls will open the GitHub Pull Requests URL using the utils helper
func (*Repo) PullRequestCount ¶
PullRequestCount returns the total amount of pull requests as an int
type Widget ¶
type Widget struct { view.MultiSourceWidget view.TextWidget GithubRepos []*Repo Selected int Items []int // contains filtered or unexported fields }
Widget define wtf widget to register widget later
func NewWidget ¶
func NewWidget(tviewApp *tview.Application, redrawChan chan bool, pages *tview.Pages, settings *Settings) *Widget
NewWidget creates a new instance of the widget
func (*Widget) GetItemCount ¶
GetItemCount returns the amount of PRs RRs and other PRs calculated so far as an int
func (*Widget) GetSelected ¶
GetSelected returns the index of the currently highlighted item as an int
func (*Widget) Refresh ¶
func (widget *Widget) Refresh()
Refresh reloads the github data via the Github API and reruns the display
func (*Widget) SetItemCount ¶
SetItemCount sets the amount of PRs RRs and other PRs throughout the widgets display creation