task

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package task provides task management functionality

Package task provides task management functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListOptions

type ListOptions struct {
	State    string // "open", "closed", "all" (default: "open")
	Assignee string // filter by assignee login (empty = all)
	Labels   []string
}

ListOptions specifies options for listing tasks

type Service

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

Service provides task management operations

func NewService

func NewService(client *gh.Client) *Service

NewService creates a new task service

func (*Service) List

func (s *Service) List(ctx context.Context, opts ListOptions) ([]*Task, error)

List returns tasks matching the options

func (*Service) ListByAssignee

func (s *Service) ListByAssignee(ctx context.Context, assignee string) ([]*Task, error)

ListByAssignee returns tasks for a specific assignee

func (*Service) ListStale

func (s *Service) ListStale(ctx context.Context, days int) ([]*Task, error)

ListStale returns tasks older than specified days

type Task

type Task struct {
	Issue     *github.Issue
	StaleDays int
}

Task represents a task with additional metadata

func NewTask

func NewTask(issue *github.Issue) *Task

NewTask creates a Task from a GitHub issue

func (*Task) Assignee

func (t *Task) Assignee() string

Assignee returns the assignee login name

func (*Task) Assignees

func (t *Task) Assignees() []string

Assignees returns all assignee login names

func (*Task) IsPullRequest

func (t *Task) IsPullRequest() bool

IsPullRequest returns true if this issue is actually a PR

func (*Task) Labels

func (t *Task) Labels() []string

Labels returns the issue labels

func (*Task) Number

func (t *Task) Number() int

Number returns the issue number

func (*Task) State

func (t *Task) State() string

State returns the issue state (open/closed)

func (*Task) Title

func (t *Task) Title() string

Title returns the issue title

Jump to

Keyboard shortcuts

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