action

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListActionTasksImpl

type ListActionTasksImpl struct {
	Client *tools.Client
}

ListActionTasksImpl implements the read-only MCP tool for listing Forgejo Actions tasks. This is a safe, idempotent operation. Note: This feature is not supported by the official Forgejo SDK and requires a custom HTTP implementation.

func (ListActionTasksImpl) Definition

func (ListActionTasksImpl) Definition() *mcp.Tool

Definition describes the `list_action_tasks` tool. It requires `owner` and `repo` and supports various optional parameters for filtering. It is marked as a safe, read-only operation.

func (ListActionTasksImpl) Handler

Handler implements the logic for listing action tasks. It performs a custom HTTP GET request to the `/repos/{owner}/{repo}/actions/tasks` endpoint and formats the results into a markdown table.

type ListActionTasksParams

type ListActionTasksParams struct {
	// Owner is the username or organization name that owns the repository.
	Owner string `json:"owner"`
	// Repo is the name of the repository.
	Repo string `json:"repo"`
	// Page is the page number for pagination.
	Page int `json:"page,omitempty"`
	// Limit is the number of tasks to return per page.
	Limit int `json:"limit,omitempty"`
}

ListActionTasksParams defines the parameters for the list_action_tasks tool. It includes basic pagination options for Forgejo Actions tasks.

Jump to

Keyboard shortcuts

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