gitlab

package
v0.0.0-...-9c5270f Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentItem

type ContentItem struct {
	Type string
	ID   int
}

type GitlabProject

type GitlabProject struct {
	MergeRequests         []*glb.MergeRequest
	AssignedMergeRequests []*glb.MergeRequest
	AuthoredMergeRequests []*glb.MergeRequest
	AssignedIssues        []*glb.Issue
	AuthoredIssues        []*glb.Issue
	RemoteProject         *glb.Project
	// contains filtered or unexported fields
}

func NewGitlabProject

func NewGitlabProject(context *context, projectPath string) *GitlabProject

func (*GitlabProject) IssueCount

func (project *GitlabProject) IssueCount() int

func (*GitlabProject) MergeRequestCount

func (project *GitlabProject) MergeRequestCount() int

func (*GitlabProject) Refresh

func (project *GitlabProject) Refresh()

Refresh reloads the gitlab data via the Gitlab API

func (*GitlabProject) StarCount

func (project *GitlabProject) StarCount() int

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

Settings defines the configuration properties for this module

func NewSettingsFromYAML

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

NewSettingsFromYAML creates a new settings instance from a YAML config block

type Widget

type Widget struct {
	view.MultiSourceWidget
	view.TextWidget

	GitlabProjects []*GitlabProject

	Selected int

	Items []ContentItem
	// contains filtered or unexported fields
}

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

func (widget *Widget) GetItemCount() int

GetItemCount returns the amount of PRs RRs and other PRs calculated so far as an int

func (*Widget) GetSelected

func (widget *Widget) GetSelected() int

GetSelected returns the index of the currently highlighted item as an int

func (*Widget) Next

func (widget *Widget) Next()

Next cycles the currently highlighted text down

func (*Widget) Prev

func (widget *Widget) Prev()

Prev cycles the currently highlighted text up

func (*Widget) Refresh

func (widget *Widget) Refresh()

func (*Widget) SetItemCount

func (widget *Widget) SetItemCount(items int)

SetItemCount sets the amount of PRs RRs and other PRs throughout the widgets display creation

func (*Widget) Unselect

func (widget *Widget) Unselect()

Unselect stops highlighting the text and jumps the scroll position to the top

Jump to

Keyboard shortcuts

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