approval

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(reg *registry.Registry, client *gitlab.Client)

Register は承認関連ツールを登録する

Types

type ApproveInput

type ApproveInput struct {
	ProjectID       string `json:"project_id" jsonschema:"description:Project ID or URL-encoded path"`
	MergeRequestIID int    `json:"merge_request_iid" jsonschema:"description:Merge Request IID"`
}

ApproveInput は approve_merge_request の入力パラメータ

type ApproveOutput

type ApproveOutput struct {
	Approved        bool  `json:"approved"`
	UserHasApproved bool  `json:"user_has_approved"`
	ApprovalsLeft   int64 `json:"approvals_left"`
}

ApproveOutput は approve_merge_request の出力

type Approver

type Approver struct {
	ID       int64  `json:"id"`
	Username string `json:"username"`
}

Approver は承認者情報

type GetApprovalsInput

type GetApprovalsInput struct {
	ProjectID       string `json:"project_id" jsonschema:"description:Project ID or URL-encoded path"`
	MergeRequestIID int    `json:"merge_request_iid" jsonschema:"description:Merge Request IID"`
}

GetApprovalsInput は get_merge_request_approvals の入力パラメータ

type GetApprovalsOutput

type GetApprovalsOutput struct {
	Approved          bool       `json:"approved"`
	ApprovalsRequired int64      `json:"approvals_required"`
	ApprovalsLeft     int64      `json:"approvals_left"`
	UserHasApproved   bool       `json:"user_has_approved"`
	UserCanApprove    bool       `json:"user_can_approve"`
	ApprovedBy        []Approver `json:"approved_by"`
}

GetApprovalsOutput は get_merge_request_approvals の出力

type UnapproveInput

type UnapproveInput struct {
	ProjectID       string `json:"project_id" jsonschema:"description:Project ID or URL-encoded path"`
	MergeRequestIID int    `json:"merge_request_iid" jsonschema:"description:Merge Request IID"`
}

UnapproveInput は unapprove_merge_request の入力パラメータ

type UnapproveOutput

type UnapproveOutput struct {
	Success bool `json:"success"`
}

UnapproveOutput は unapprove_merge_request の出力

Jump to

Keyboard shortcuts

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