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

projectiterations

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package projectiterations implements MCP tools for GitLab project iteration operations.

The package wraps the GitLab Iterations API:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatListMarkdown

func FormatListMarkdown(out ListOutput) string

FormatListMarkdown renders a page of project iterations as the shared iteration table, with the project's own title and empty-list sentence.

func FormatOutputMarkdown

func FormatOutputMarkdown(out Output) string

FormatOutputMarkdown renders one project iteration as the shared iteration card, iterationdata.FormatCardMarkdown. Output is that package's type, so the card is registered there once rather than here and in the group iteration package, where the registry kept whichever init ran first.

func IssueActionSpecs

func IssueActionSpecs(client *gitlabclient.Client) []toolutil.ActionSpec

IssueActionSpecs returns canonical specs for project iteration actions exposed through gitlab_issue.

Types

type ListInput

type ListInput struct {
	ProjectID        toolutil.StringOrInt `json:"project_id" jsonschema:"Project ID or URL-encoded path,required"`
	State            string               `json:"state,omitempty" jsonschema:"Filter by state: opened, upcoming, current, closed, all"`
	Search           string               `json:"search,omitempty" jsonschema:"Search by title"`
	IncludeAncestors bool                 `json:"include_ancestors,omitempty" jsonschema:"Include ancestor iterations"`
	toolutil.PaginationInput
}

ListInput defines parameters for listing project iterations.

type ListOutput

type ListOutput struct {
	toolutil.HintableOutput
	Iterations []Output                  `json:"iterations"`
	Pagination toolutil.PaginationOutput `json:"pagination"`
}

ListOutput wraps a list of project iterations.

func List

func List(ctx context.Context, client *gitlabclient.Client, input ListInput) (ListOutput, error)

List lists project iterations.

type Output

type Output = iterationdata.Output

Output represents a project iteration.

Jump to

Keyboard shortcuts

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