azdo-cli 0.8.0 → 0.9.0-032-fix-code-generics.574

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,10 +13,12 @@ Azure DevOps CLI focused on work item read/write workflows.
13
13
  - Create or update work items from markdown documents (`upsert`)
14
14
  - Read and post work item comments (`comments`)
15
15
  - Read/write rich-text fields as markdown (`get-md-field`, `set-md-field`)
16
- - Check branch pull request status, open PRs to `develop`, and review active comments (`pr`)
16
+ - Download images embedded in rich-text fields, optionally resized for LLM use (`get-item`/`get-md-field` `--download-images`, `--resize-images`)
17
+ - Check branch pull request status, open PRs to `develop`, list PR comment threads for any PR (`--pr-number`), and resolve/reopen threads from the CLI (`pr`)
17
18
  - Persist org/project/default fields in local config (`config`)
18
19
  - List all fields of a work item (`list-fields`)
19
- - Store PAT in OS credential store (or use `AZDO_PAT`)
20
+ - Authenticate per Azure DevOps organization with `azdo auth login` — OAuth (Microsoft Entra) by default, or a Personal Access Token via `--use-pat` (or the `AZDO_PAT` env var). Credentials are stored in the OS credential store. Inspect with `azdo auth status`, remove with `azdo auth logout`. Diagnose auth problems with `azdo auth diagnose`. See [docs/authentication.md](docs/authentication.md).
21
+ - Trace all HTTP requests to a local file with `--trace <filepath>` (sensitive headers and tokens are automatically redacted).
20
22
 
21
23
  ## Installation
22
24
 
@@ -27,6 +29,9 @@ npm install -g azdo-cli
27
29
  ## Quick Start
28
30
 
29
31
  ```bash
32
+ # Sign in to an organization (OAuth by default; add --use-pat for a PAT)
33
+ azdo auth login --org myorg
34
+
30
35
  # Configure defaults once
31
36
  azdo config set org myorg
32
37
  azdo config set project myproject
@@ -34,22 +39,56 @@ azdo config set project myproject
34
39
  # Read a work item
35
40
  azdo get-item 12345
36
41
 
42
+ # Download images embedded in a work item's rich-text fields (opt-in)
43
+ azdo get-item 12345 --download-images # saved to the system temp dir
44
+ azdo get-item 12345 --resize-images 1024 --images-path ./img # cap width at 1024px, save as PNG
45
+ azdo get-md-field 12345 System.Description --download-images # same flags on get-md-field
46
+
37
47
  # Update state
38
48
  azdo set-state 12345 "Active"
39
49
 
40
50
  # Create a work item from markdown
41
51
  azdo upsert --type "User Story" --content $'---\nTitle: Improve markdown import UX\nState: New\n---'
42
52
 
43
- # Read and post comments
53
+ # Read and post work item comments
44
54
  azdo comments list 12345
45
55
  azdo comments add 12345 "Investigating the root cause now."
56
+
57
+ # PR comment threads — list, filter, target by number, resolve or reopen
58
+ azdo pr comments # active-branch PR; code-anchored threads show file:line
59
+ azdo pr comments --pr-number 64 # any PR by number (skips branch lookup)
60
+ azdo pr comments --pr-number 64 --hide-resolved # or --exclude-resolved (alias)
61
+ azdo pr comments --code-related-only # only file/line-anchored threads
62
+ azdo pr status # PR checks (status + branch policies + pipeline builds) + code-comment counts
63
+ azdo pr comment-resolve 17 --pr-number 64 # idempotent: exit 0 even when already resolved
64
+ azdo pr comment-reopen 17 --pr-number 64
65
+
66
+ # Reply to a PR comment thread
67
+ azdo pr comments reply 148 "Great suggestion, I'll address it." # human-readable output
68
+ azdo pr comments reply 148 "Done." --pr-number 64 --json # JSON: { pullRequestId, threadId, commentId, content }
69
+ azdo pr comment-reply 148 "Done." --pr-number 64 # flat alias, identical behaviour
70
+
71
+ # Pipelines — list, inspect runs, wait (exit code = result), start
72
+ azdo pipeline list --filter ci
73
+ azdo pipeline get-runs 12 --branch develop --limit 1
74
+ azdo pipeline wait 3456 # blocks; exit 0 success / non-zero failure / 124 timeout
75
+ azdo pipeline get-run-detail 3456 # errors, failing tests, per-stage status
76
+ azdo pipeline start 12 --branch develop --parameter env=staging
77
+
78
+ # Work item relations — types, add, remove, list
79
+ azdo relations types # list all relation types (Child, Parent, Related, ...)
80
+ azdo relations types --json # machine-readable JSON array
81
+ azdo relations add child 1000 2000 # make #2000 a child of #1000 (idempotent)
82
+ azdo relations remove child 1000 2000 # remove the child relation
83
+ azdo relations list 1000 # show all relations on work item #1000
84
+ azdo relations list 1000 --json # JSON: { workItemId, relations: [...] }
46
85
  ```
47
86
 
48
87
  ## Documentation
49
88
 
50
89
  | Topic | File |
51
90
  |-------|------|
52
- | Authentication & PAT storage | [docs/authentication.md](docs/authentication.md) |
91
+ | Authentication (OAuth & PAT) | [docs/authentication.md](docs/authentication.md) |
53
92
  | Linux credential store setup | [docs/linux-credential-store.md](docs/linux-credential-store.md) |
54
93
  | Full command reference | [docs/commands.md](docs/commands.md) |
55
94
  | Development setup | [docs/development.md](docs/development.md) |