mirror of
https://gitea.com/gitea/tea.git
synced 2026-06-05 18:58:43 +02:00
8e0666ab85
Reviewed-on: https://gitea.com/gitea/tea/pulls/1003 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-committed-by: techknowlogick <techknowlogick@gitea.com>
31 lines
776 B
Go
31 lines
776 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"
|
|
)
|
|
|
|
// CmdPullsUnresolve unresolves a review comment on a pull request
|
|
var CmdPullsUnresolve = cli.Command{
|
|
Name: "unresolve",
|
|
Usage: "Unresolve a review comment on a pull request",
|
|
Description: "Unresolve a review comment on a pull request",
|
|
ArgsUsage: "<comment id>",
|
|
Action: func(_ stdctx.Context, cmd *cli.Command) error {
|
|
ctx, err := context.InitCommand(cmd)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return runResolveComment(ctx, task.UnresolvePullReviewComment)
|
|
},
|
|
Flags: flags.AllDefaultFlags,
|
|
}
|