@proggarapsody/bitbottle 1.21.0 → 1.22.0
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 +33 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ Credentials are stored in `~/.config/bitbottle/hosts.yml`. Inside a git repo wit
|
|
|
76
76
|
|---|---|
|
|
77
77
|
| `auth` | `login` `logout` `status` `token` `refresh` |
|
|
78
78
|
| `pr` | `list` `view` `create` `merge` `approve` `unapprove` `diff` `checkout` `edit` `decline` `reopen` `ready` `request-review` `comment` |
|
|
79
|
-
| `repo` | `list` `view` `create` `delete` `clone` `set-default` `rename` `fork` _(Cloud)_ |
|
|
79
|
+
| `repo` | `list` `view` `create` `delete` `clone` `set-default` `rename` `fork` _(Cloud)_ `file get` `tree` |
|
|
80
80
|
| `branch` | `list` `create` `delete` `checkout` |
|
|
81
81
|
| `tag` | `list` `create` `delete` |
|
|
82
82
|
| `webhook` | `list` `view` `create` `delete` |
|
|
@@ -122,6 +122,11 @@ bitbottle pr request-review 42 --reviewer alice --reviewer bob
|
|
|
122
122
|
# Decline / reopen (reopen is Bitbucket Server / DC only)
|
|
123
123
|
bitbottle pr decline 42
|
|
124
124
|
bitbottle pr reopen 42
|
|
125
|
+
|
|
126
|
+
# Read review comments — general + inline (file:line) anchors and replies
|
|
127
|
+
bitbottle pr comment list 42 # all comments; LOCATION column shows path:line for inline
|
|
128
|
+
bitbottle pr comment list 42 --inline # only inline review comments
|
|
129
|
+
bitbottle pr comment list 42 --json id,inline,parentId,resolved,updatedAt
|
|
125
130
|
```
|
|
126
131
|
|
|
127
132
|
### Repos & Branches
|
|
@@ -223,6 +228,33 @@ bitbottle repo fork myworkspace/my-service --into otherws --name my-fork
|
|
|
223
228
|
Data Center, which has no fork primitive in its REST API. Both `rename` and
|
|
224
229
|
`fork` accept `--json fields` and `--jq expr` for structured output.
|
|
225
230
|
|
|
231
|
+
### Reading source at a ref
|
|
232
|
+
|
|
233
|
+
Read file content and directory listings at any ref (branch, tag, commit
|
|
234
|
+
hash) without cloning. Both backends; the bytes round-trip cleanly so
|
|
235
|
+
binary files survive `--out`.
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
# Read a file at a ref — straight to stdout
|
|
239
|
+
bitbottle repo file get MYPROJ/my-service README.md --ref main
|
|
240
|
+
|
|
241
|
+
# Pin a tag and write to disk (binary-safe)
|
|
242
|
+
bitbottle repo file get MYPROJ/my-service logo.png --ref v1.2.0 --out logo.png
|
|
243
|
+
|
|
244
|
+
# List a directory at a ref. PATH defaults to the repo root.
|
|
245
|
+
bitbottle repo tree MYPROJ/my-service --ref main
|
|
246
|
+
bitbottle repo tree MYPROJ/my-service cmd --ref main
|
|
247
|
+
|
|
248
|
+
# Structured output for scripts and agents
|
|
249
|
+
bitbottle repo tree MYPROJ/my-service --ref main --json path,type,size
|
|
250
|
+
bitbottle repo tree MYPROJ/my-service --ref main --jq '.[]|select(.type=="dir").path'
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
`type` is normalised to `file` or `dir` across both backends. Submodules
|
|
254
|
+
surface as `dir` (with the submodule pointer in `hash`) so renderers can
|
|
255
|
+
recurse uniformly without a special case. The MCP equivalents are
|
|
256
|
+
`get_file_content` and `list_tree`.
|
|
257
|
+
|
|
226
258
|
### Workspaces & Projects (Cloud only)
|
|
227
259
|
|
|
228
260
|
```bash
|