api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package api is the GitHub Projects v2 data source: it wraps the go-gh GraphQL client and maps GitHub's schema onto lazydash's backend-neutral core model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client wraps the go-gh GraphQL client.

func NewClient

func NewClient() (*Client, error)

NewClient creates a Client using the current gh auth context.

func (*Client) GetProjectBoard

func (c *Client) GetProjectBoard(projectID string) (*core.BoardData, error)

GetProjectBoard fetches views, fields, and all items for a project. Use core.GroupByField to render a specific view's columns.

func (*Client) ListOrgProjects

func (c *Client) ListOrgProjects(org string) ([]core.Project, error)

ListOrgProjects fetches up to 50 open projects for the given org login.

func (*Client) ListUserProjects

func (c *Client) ListUserProjects(login string) ([]core.Project, error)

ListUserProjects fetches up to 50 open projects for the given user login.

func (*Client) ListViewerOrgs

func (c *Client) ListViewerOrgs() ([]string, error)

ListViewerOrgs returns the login names of orgs the authenticated user belongs to.

func (*Client) ViewerLogin

func (c *Client) ViewerLogin() (string, error)

ViewerLogin returns the authenticated user's login.

Jump to

Keyboard shortcuts

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