mirror of
https://gitea.com/gitea/tea.git
synced 2026-05-15 20:29:22 +02:00
30 lines
722 B
Go
30 lines
722 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package pulls
|
|
|
|
import (
|
|
stdctx "context"
|
|
|
|
"code.gitea.io/tea/cmd/flags"
|
|
"code.gitea.io/tea/modules/context"
|
|
|
|
"github.com/urfave/cli/v3"
|
|
)
|
|
|
|
// CmdPullsReply replies to a review comment on a pull request.
|
|
var CmdPullsReply = cli.Command{
|
|
Name: "reply",
|
|
Usage: "Reply to a pull request review comment",
|
|
Description: "Reply to a pull request review comment",
|
|
ArgsUsage: "<pull index> <comment id> [<reply>]",
|
|
Action: func(_ stdctx.Context, cmd *cli.Command) error {
|
|
ctx, err := context.InitCommand(cmd)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return runPullReviewReply(ctx)
|
|
},
|
|
Flags: flags.AllDefaultFlags,
|
|
}
|