Help us shape the future of Go! Take the 2026 Go Developer Survey

iterationdata

package
v2.7.5 Latest Latest
Warning

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

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

Documentation

Overview

Package iterationdata contains shared GitLab iteration conversion helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatListMarkdown

func FormatListMarkdown(title, emptyText string, iterations []Output, pagination toolutil.PaginationOutput) string

FormatListMarkdown formats a list of iterations with the provided title and empty text.

func FormatOutputMarkdown

func FormatOutputMarkdown(output Output, hints ...string) string

FormatOutputMarkdown formats a single iteration and appends optional hints.

func NewGroupListOptions

func NewGroupListOptions(page, perPage int, state, search string, includeAncestors bool) *gl.ListGroupIterationsOptions

NewGroupListOptions builds GitLab options for listing group iterations.

func NewProjectListOptions

func NewProjectListOptions(page, perPage int, state, search string, includeAncestors bool) *gl.ListProjectIterationsOptions

NewProjectListOptions builds GitLab options for listing project iterations.

func StateName

func StateName(state int64) string

StateName maps GitLab iteration state integers to human-readable names.

Types

type Output

type Output struct {
	ID          int64  `json:"id"`
	IID         int64  `json:"iid"`
	Sequence    int64  `json:"sequence"`
	GroupID     int64  `json:"group_id"`
	Title       string `json:"title"`
	Description string `json:"description,omitempty"`
	State       int64  `json:"state"`
	WebURL      string `json:"web_url,omitempty"`
	StartDate   string `json:"start_date,omitempty"`
	DueDate     string `json:"due_date,omitempty"`
	CreatedAt   string `json:"created_at,omitempty"`
	UpdatedAt   string `json:"updated_at,omitempty"`
}

Output represents a GitLab iteration shared by project and group tools.

func GroupOutput

func GroupOutput(it *gl.GroupIteration) Output

GroupOutput converts a GitLab group iteration to shared output fields.

func ProjectOutput

func ProjectOutput(it *gl.ProjectIteration) Output

ProjectOutput converts a GitLab project iteration to shared output fields.

Jump to

Keyboard shortcuts

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