Documentation
¶
Index ¶
- func Register(reg *registry.Registry, client *gitlab.Client)
- type AddCommentInput
- type AddCommentOutput
- type AddDiscussionInput
- type AddDiscussionOutput
- type DeleteCommentInput
- type DeleteCommentOutput
- type DiffPosition
- type DiscussionNote
- type DiscussionSummary
- type ListDiscussionsInput
- type ListDiscussionsOutput
- type ResolveDiscussionInput
- type ResolveDiscussionOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddCommentInput ¶
type AddCommentInput 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"`
Body string `json:"body" jsonschema:"description:Comment body text"`
}
AddCommentInput は add_merge_request_comment の入力パラメータ
type AddCommentOutput ¶
type AddCommentOutput struct {
ID int64 `json:"id"`
Body string `json:"body"`
AuthorName string `json:"author_name,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
}
AddCommentOutput は add_merge_request_comment の出力
type AddDiscussionInput ¶
type AddDiscussionInput 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"`
Body string `json:"body" jsonschema:"description:Discussion body text"`
Position *DiffPosition `json:"position,omitempty" jsonschema:"description:Position for line comment"`
}
AddDiscussionInput は add_merge_request_discussion の入力パラメータ
type AddDiscussionOutput ¶
type AddDiscussionOutput struct {
ID string `json:"id"`
}
AddDiscussionOutput は add_merge_request_discussion の出力
type DeleteCommentInput ¶ added in v0.2.2
type DeleteCommentInput 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"`
NoteID int `json:"note_id" jsonschema:"description:Note ID to delete"`
}
DeleteCommentInput は delete_merge_request_comment の入力パラメータ
type DeleteCommentOutput ¶ added in v0.2.2
DeleteCommentOutput は delete_merge_request_comment の出力
type DiffPosition ¶
type DiffPosition struct {
BaseSHA string `json:"base_sha" jsonschema:"description:Base commit SHA"`
StartSHA string `json:"start_sha" jsonschema:"description:Start commit SHA"`
HeadSHA string `json:"head_sha" jsonschema:"description:Head commit SHA"`
OldPath string `json:"old_path" jsonschema:"description:Old file path"`
NewPath string `json:"new_path" jsonschema:"description:New file path"`
OldLine *int `json:"old_line,omitempty" jsonschema:"description:Line number in old file"`
NewLine *int `json:"new_line,omitempty" jsonschema:"description:Line number in new file"`
}
DiffPosition は差分内の位置を指定する
type DiscussionNote ¶
type DiscussionNote struct {
ID int64 `json:"id"`
Body string `json:"body"`
AuthorName string `json:"author_name,omitempty"`
Resolvable bool `json:"resolvable"`
Resolved bool `json:"resolved"`
}
DiscussionNote はディスカッション内のノート情報
type DiscussionSummary ¶
type DiscussionSummary struct {
ID string `json:"id"`
Notes []DiscussionNote `json:"notes"`
}
DiscussionSummary はディスカッションのサマリー情報
type ListDiscussionsInput ¶
type ListDiscussionsInput 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"`
Page int `json:"page,omitempty" jsonschema:"description:Page number (default: 1)"`
PerPage int `json:"per_page,omitempty" jsonschema:"description:Number of items per page (default: 100, max: 100)"`
}
ListDiscussionsInput は list_merge_request_discussions の入力パラメータ
type ListDiscussionsOutput ¶
type ListDiscussionsOutput struct {
Discussions []DiscussionSummary `json:"discussions"`
}
ListDiscussionsOutput は list_merge_request_discussions の出力
type ResolveDiscussionInput ¶
type ResolveDiscussionInput 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"`
DiscussionID string `json:"discussion_id" jsonschema:"description:Discussion ID"`
Resolved bool `json:"resolved" jsonschema:"description:Set to true to resolve or false to unresolve"`
}
ResolveDiscussionInput は resolve_discussion の入力パラメータ
type ResolveDiscussionOutput ¶
ResolveDiscussionOutput は resolve_discussion の出力
Click to show internal directories.
Click to hide internal directories.