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

groupanalytics

package
v3.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package groupanalytics implements MCP tools for GitLab group analytics.

The package wraps GitLab GraphQL group analytics fields:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionSpecs

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

ActionSpecs returns canonical specs for group analytics actions.

func FormatIssuesCountMarkdown

func FormatIssuesCountMarkdown(out IssuesCountOutput) string

FormatIssuesCountMarkdown renders the recently created issue count as a card.

func FormatMRCountMarkdown

func FormatMRCountMarkdown(out MRCountOutput) string

FormatMRCountMarkdown renders the recently created merge request count as a card.

func FormatMembersCountMarkdown

func FormatMembersCountMarkdown(out MembersCountOutput) string

FormatMembersCountMarkdown renders the recently added member count as a card.

Types

type IssuesCountInput

type IssuesCountInput struct {
	GroupPath string `json:"group_path" jsonschema:"Full path of the group (e.g. my-group or parent/child),required"`
}

IssuesCountInput holds parameters for retrieving recently created issues count.

type IssuesCountOutput

type IssuesCountOutput struct {
	toolutil.HintableOutput
	GroupPath   string `json:"group_path"`
	IssuesCount int64  `json:"issues_count"`
}

IssuesCountOutput represents the count of recently created issues in a group.

func GetIssuesCount

func GetIssuesCount(ctx context.Context, client *gitlabclient.Client, in IssuesCountInput) (IssuesCountOutput, error)

GetIssuesCount retrieves the count of recently created issues for a group.

type MRCountInput

type MRCountInput struct {
	GroupPath string `json:"group_path" jsonschema:"Full path of the group (e.g. my-group or parent/child),required"`
}

MRCountInput holds parameters for retrieving recently created merge requests count.

type MRCountOutput

type MRCountOutput struct {
	toolutil.HintableOutput
	GroupPath          string `json:"group_path"`
	MergeRequestsCount int64  `json:"merge_requests_count"`
}

MRCountOutput represents the count of recently created merge requests in a group.

func GetMRCount

func GetMRCount(ctx context.Context, client *gitlabclient.Client, in MRCountInput) (MRCountOutput, error)

GetMRCount retrieves the count of recently created merge requests for a group.

type MembersCountInput

type MembersCountInput struct {
	GroupPath string `json:"group_path" jsonschema:"Full path of the group (e.g. my-group or parent/child),required"`
}

MembersCountInput holds parameters for retrieving recently added members count.

type MembersCountOutput

type MembersCountOutput struct {
	toolutil.HintableOutput
	GroupPath       string `json:"group_path"`
	NewMembersCount int64  `json:"new_members_count"`
}

MembersCountOutput represents the count of recently added members in a group.

func GetMembersCount

func GetMembersCount(ctx context.Context, client *gitlabclient.Client, in MembersCountInput) (MembersCountOutput, error)

GetMembersCount retrieves the count of recently added members for a group.

Jump to

Keyboard shortcuts

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