github

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token       string
	MaxFetchers int64
}

Config .

type GithubProvider

type GithubProvider struct {
	Config
	Client *github.Client
	Logger zerolog.Logger
}

GithubProvider .

func NewGithubProvider

func NewGithubProvider(cfg Config, logger zerolog.Logger) *GithubProvider

NewGithubProvider .

func (*GithubProvider) GetProject

func (g *GithubProvider) GetProject(ctx context.Context, id int64) (*models.Project, error)

GetProject .

func (*GithubProvider) GetProjectData

func (g *GithubProvider) GetProjectData(ctx context.Context, projectID int64) (*models.ProjectData, error)

GetProjectData returns all the columns with all the cards in the columns.

func (*GithubProvider) ListOrganizationProjects

func (g *GithubProvider) ListOrganizationProjects(ctx context.Context, org string, opts *models.ListOptions) ([]*models.Project, error)

ListOrganizationProjects lists all projects for an organization

func (*GithubProvider) ListRepositoryProjects

func (g *GithubProvider) ListRepositoryProjects(ctx context.Context, owner, repo string, opts *models.ListOptions) ([]*models.Project, error)

ListRepositoryProjects lists all projects for a repository

func (*GithubProvider) LoadRest

func (g *GithubProvider) LoadRest(ctx context.Context, columnID int64, list *tview.List) error

LoadRest will fetch the rest of the cards if there are any.

func (*GithubProvider) MoveAnIssue

func (g *GithubProvider) MoveAnIssue(ctx context.Context, cardID int64, columnID int64) error

MoveAnIssue into a new column.

Jump to

Keyboard shortcuts

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