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 ¶
FormatOutputMarkdown renders one project iteration as the shared iteration card.
Both iteration packages alias one output type, so the Markdown registry keys them together and whichever init runs first answers for both scopes. The card therefore names both list actions, in one order, so the two packages render the same answer and which registration won stops mattering; this card used to carry no hint at all, which made the two scopes differ on nothing a reader could have chosen.
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.