@proggarapsody/bitbottle 1.25.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 +33 -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)_ |
|
|
@@ -145,6 +145,11 @@ bitbottle pr review 42 --approve --body "lgtm overall"
|
|
|
145
145
|
bitbottle pr review 42 --request-changes --body "see comments" \
|
|
146
146
|
--inline pkg/foo.go:88:please rename # request-changes is Cloud only
|
|
147
147
|
bitbottle pr review 42 --comment --inline pkg/foo.go:10-15:extract helper # comment-only review
|
|
148
|
+
|
|
149
|
+
# PR activity event stream (approvals, comments, updates, merges)
|
|
150
|
+
bitbottle pr activity 42
|
|
151
|
+
bitbottle pr activity 42 --limit 20
|
|
152
|
+
bitbottle pr activity 42 --json type,actor,createdAt,detail
|
|
148
153
|
```
|
|
149
154
|
|
|
150
155
|
### Repos & Branches
|
|
@@ -374,6 +379,33 @@ bitbottle --hostname git.example.com code-insights merge-check delete \
|
|
|
374
379
|
Invoking any `code-insights` command against a Bitbucket Cloud host returns
|
|
375
380
|
the typed `host.unsupported` error.
|
|
376
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
|
+
|
|
377
409
|
### Raw API
|
|
378
410
|
|
|
379
411
|
```bash
|