mirror of
https://gitea.com/gitea/tea.git
synced 2026-06-05 18:58:43 +02:00
28ba9b915b
Reviewed-on: https://gitea.com/gitea/tea/pulls/1006 Reviewed-by: Zettat123 <39446+zettat123@noreply.gitea.com>
31 lines
783 B
Go
31 lines
783 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package pulls
|
|
|
|
import (
|
|
stdctx "context"
|
|
|
|
"gitea.dev/tea/cmd/flags"
|
|
"gitea.dev/tea/modules/context"
|
|
"gitea.dev/tea/modules/task"
|
|
|
|
"github.com/urfave/cli/v3"
|
|
)
|
|
|
|
// CmdPullsResolve resolves a review comment on a pull request
|
|
var CmdPullsResolve = cli.Command{
|
|
Name: "resolve",
|
|
Usage: "Resolve a review comment on a pull request",
|
|
Description: "Resolve a review comment on a pull request",
|
|
ArgsUsage: "<comment id>",
|
|
Action: func(requestCtx stdctx.Context, cmd *cli.Command) error {
|
|
ctx, err := context.InitCommand(cmd)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return runResolveComment(requestCtx, ctx, task.ResolvePullReviewComment)
|
|
},
|
|
Flags: flags.AllDefaultFlags,
|
|
}
|