Skip to content

Commit 132d463

Browse files
committed
docs: update skills and help for comments delete/resolve, diff fixes
- Add comments delete and resolve to adocl-cli skill commands and examples - Update prs comments parent command help to list all subcommands - Add delete/resolve to @moduledoc reference
1 parent f3d1d1c commit 132d463

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

lib/ado_cli/cli/pull_requests.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ defmodule AdoCli.CLI.PullRequests do
2525
[--file-path PATH --line N] [--thread-id TID] [--status STATUS] [--json]
2626
ado_cli prs comments update PROJECT REPO PR_ID THREAD_ID COMMENT_ID
2727
[--content TEXT|@FILE|-] [--status STATUS] [--resolved-by-me] [--dry-run] [--json]
28+
ado_cli prs comments delete PROJECT REPO PR_ID THREAD_ID [--comment-id ID] [--force] [--json]
29+
ado_cli prs comments resolve PROJECT REPO PR_ID THREAD_ID [--status STATUS] [--resolved-by-me] [--json]
2830
2931
`prs diff` lists changed files by default (path, change type, +/- counts),
3032
or shows the full unified diff for a specific path with --file, or emits
@@ -250,7 +252,7 @@ defmodule AdoCli.CLI.PullRequests do
250252
comments: [
251253
name: "ado prs comments",
252254
doc:
253-
"Manage pull request review comments (inline code comments, file-level comments, and discussion threads). A 'thread' is the top-level comment; a 'comment' is a reply within a thread.",
255+
"Manage pull request review comments. Subcommands: add (create thread or reply), list (view threads), update (edit content or status), delete (remove comment or close thread), resolve (mark thread as fixed). A 'thread' is the top-level comment; a 'comment' is a reply within a thread.",
254256
subcommands: [
255257
list: [
256258
name: "ado prs comments list",

priv/skills/ado-cli/SKILL.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ commands:
4444
- ado prs comments list PROJECT REPO PR_ID
4545
- ado prs comments add PROJECT REPO PR_ID --content TEXT
4646
- ado prs comments update PROJECT REPO PR_ID THREAD COMMENT --content TEXT
47+
- ado prs comments delete PROJECT REPO PR_ID THREAD
48+
- ado prs comments delete PROJECT REPO PR_ID THREAD --comment-id ID
49+
- ado prs comments resolve PROJECT REPO PR_ID THREAD
4750
- ado prs diff PROJECT REPO PR_ID
4851
- ado prs diff PROJECT REPO PR_ID --file PATH
4952
- ado prs diff PROJECT REPO PR_ID --unified
@@ -286,6 +289,10 @@ echo "review" | ado prs comments add MyProject MyRepo 42 --content - # from stdi
286289
ado prs comments list MyProject MyRepo 42 --all # full content view
287290
ado prs comments update MyProject MyRepo 42 THREAD_ID COMMENT_ID --content "updated text"
288291
ado prs comments update MyProject MyRepo 42 THREAD_ID COMMENT_ID --status closed --resolved-by-me
292+
ado prs comments delete MyProject MyRepo 42 THREAD_ID # close a thread
293+
ado prs comments delete MyProject MyRepo 42 THREAD_ID --comment-id 1 # delete a comment
294+
ado prs comments resolve MyProject MyRepo 42 THREAD_ID # resolve as fixed
295+
ado prs comments resolve MyProject MyRepo 42 THREAD_ID --resolved-by-me --status wontFix
289296

290297
# Reviewers
291298
ado prs reviewers list MyProject MyRepo 42

0 commit comments

Comments
 (0)