format

package
v0.0.0-...-902489a Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationAsAdj

func DurationAsAdj(d time.Duration) string

func FormatSection

func FormatSection(title string, issues []*GitHubIssue) string

func GetCompletedIssueParams

func GetCompletedIssueParams(issues []*CompletedIssue) completedIssueWidths

Types

type CompletedIssue

type CompletedIssue struct {
	Type      string
	ID        string
	Status    string
	Title     string
	Duration  string
	Reactions string
}

func ParseAllCompleted

func ParseAllCompleted(issues []*GitHubIssue) []*CompletedIssue

func ParseCompleted

func ParseCompleted(ghi *GitHubIssue) *CompletedIssue

func (*CompletedIssue) Format

func (ci *CompletedIssue) Format(params completedIssueWidths) string

type GitHubIssue

type GitHubIssue struct {
	Merged bool
	Issue  *github.Issue
}

Jump to

Keyboard shortcuts

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