task

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package task contains types and engines to work with tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ticket

type Ticket struct {
	ID       string `yaml:"id"`
	ParentID string `yaml:"parent_id"`

	URL          string    `yaml:"url"`
	Name         string    `yaml:"name"`
	Body         string    `yaml:"body"`
	ClosedAt     time.Time `yaml:"closed_at"`
	Author       User      `yaml:"author"`
	Assignee     User      `yaml:"assignee"`
	Type         Type      `yaml:"type"`
	TypeRaw      string    `yaml:"type_raw"` // save raw type in case if user wants to distinguish different raw values
	Flagged      bool      `yaml:"flagged"`
	Watchers     []User    `yaml:"watchers"`
	WatchesCount int       `yaml:"watches_count"`
}

Ticket represents a single task in task tracker.

func (Ticket) GetTicket added in v0.10.0

func (t Ticket) GetTicket() Ticket

GetTicket returns the ticket itself. FIXME: this is ugly, but it's needed to match the interface for embedded structs.

type Type

type Type string

Type specifies the type of the task.

const (
	// TypeEpic is an epic task type.
	TypeEpic Type = "epic"
	// TypeTask is a simple task type.
	TypeTask Type = "task"
	// TypeSubtask is a sub-task type.
	TypeSubtask Type = "subtask"
)

type User

type User struct {
	Username string
	Email    string
}

User represents a task tracker user.

Directories

Path Synopsis
Package engine contains implementations of task.Tracker for different task providers.
Package engine contains implementations of task.Tracker for different task providers.

Jump to

Keyboard shortcuts

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