@proggarapsody/bitbottle 1.26.0 → 1.27.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 +28 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ Credentials are stored in `~/.config/bitbottle/hosts.yml`. Inside a git repo wit
|
|
|
80
80
|
| `branch` | `list` `create` `delete` `checkout` |
|
|
81
81
|
| `tag` | `list` `create` `delete` |
|
|
82
82
|
| `webhook` | `list` `view` `create` `delete` |
|
|
83
|
-
| `commit` | `log` `view` |
|
|
83
|
+
| `commit` | `log` `view` `status` `comment {list\|add\|edit\|delete}` |
|
|
84
84
|
| `pipeline` | `list` `view` `run` _(Cloud only)_ |
|
|
85
85
|
| `workspace` | `list` _(Cloud only)_ |
|
|
86
86
|
| `project` | `list WORKSPACE` _(Cloud only)_ |
|
|
@@ -379,6 +379,33 @@ bitbottle --hostname git.example.com code-insights merge-check delete \
|
|
|
379
379
|
Invoking any `code-insights` command against a Bitbucket Cloud host returns
|
|
380
380
|
the typed `host.unsupported` error.
|
|
381
381
|
|
|
382
|
+
### Commit Comments
|
|
383
|
+
|
|
384
|
+
Add and manage review-style comments on individual commits. Both Bitbucket
|
|
385
|
+
Cloud and Server / Data Center are supported.
|
|
386
|
+
|
|
387
|
+
```bash
|
|
388
|
+
# List all comments on a commit
|
|
389
|
+
bitbottle commit comment list MYPROJ/my-service abc1234
|
|
390
|
+
|
|
391
|
+
# Add a comment
|
|
392
|
+
bitbottle commit comment add MYPROJ/my-service abc1234 --body "LGTM"
|
|
393
|
+
|
|
394
|
+
# Edit an existing comment (COMMENT_ID from list --json id)
|
|
395
|
+
bitbottle commit comment edit MYPROJ/my-service abc1234 1234 --body "Updated text"
|
|
396
|
+
|
|
397
|
+
# Delete a comment
|
|
398
|
+
bitbottle commit comment delete MYPROJ/my-service abc1234 1234
|
|
399
|
+
|
|
400
|
+
# Structured output
|
|
401
|
+
bitbottle commit comment list MYPROJ/my-service abc1234 --json id,author,body
|
|
402
|
+
bitbottle commit comment list MYPROJ/my-service abc1234 --jq '.[].body'
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
On Bitbucket Server / Data Center, `edit` and `delete` use optimistic
|
|
406
|
+
concurrency (fetches the current `version` before writing). A 409 Conflict
|
|
407
|
+
means the comment changed between calls — retry.
|
|
408
|
+
|
|
382
409
|
### Raw API
|
|
383
410
|
|
|
384
411
|
```bash
|