Skip to content

Commit ba4e86e

Browse files
committed
docs: add --end-line codeblock examples to skills and help
1 parent c3166be commit ba4e86e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/ado_cli/cli/pull_requests.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule AdoCli.CLI.PullRequests do
2222
ado_cli prs abandon PROJECT REPO PR_ID
2323
ado_cli prs comments list PROJECT REPO PR_ID [--all]
2424
ado_cli prs comments add PROJECT REPO PR_ID --content TEXT|@FILE|-
25-
[--file-path PATH --line N] [--thread-id TID] [--status STATUS] [--json]
25+
[--file-path PATH --line N [--end-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]
2828
ado_cli prs comments delete PROJECT REPO PR_ID THREAD_ID [--comment-id ID] [--force] [--json]

priv/skills/ado-cli/SKILL.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ commands:
4242
- ado prs complete PROJECT REPO ID --merge-strategy squash
4343
- ado prs approve PROJECT REPO ID
4444
- ado prs comments list PROJECT REPO PR_ID
45-
- ado prs comments add PROJECT REPO PR_ID --content TEXT
45+
- ado prs comments add PROJECT REPO PR_ID --content TEXT --file-path PATH --line N
46+
- ado prs comments add PROJECT REPO PR_ID --content TEXT --file-path PATH --line N --end-line N
4647
- ado prs comments update PROJECT REPO PR_ID THREAD COMMENT --content TEXT
4748
- ado prs comments delete PROJECT REPO PR_ID THREAD
4849
- ado prs comments delete PROJECT REPO PR_ID THREAD --comment-id ID
@@ -286,6 +287,8 @@ ado prs abandon MyProject MyRepo 42
286287
ado prs comments add MyProject MyRepo 42 --content LGTM ship it
287288
ado prs comments add MyProject MyRepo 42 --content @notes.md # from file
288289
echo "review" | ado prs comments add MyProject MyRepo 42 --content - # from stdin
290+
ado prs comments add MyProject MyRepo 42 --file-path src/app.ex --line 10 --content nitpick
291+
ado prs comments add MyProject MyRepo 42 --file-path src/app.ex --line 10 --end-line 20 --content codeblock review
289292
ado prs comments list MyProject MyRepo 42 --all # full content view
290293
ado prs comments update MyProject MyRepo 42 THREAD_ID COMMENT_ID --content "updated text"
291294
ado prs comments update MyProject MyRepo 42 THREAD_ID COMMENT_ID --status closed --resolved-by-me

0 commit comments

Comments
 (0)