bbk-cli 1.1.2 → 1.2.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +14 -0
- package/README.md +113 -132
- package/dist/cli/wrapper.d.ts +0 -1
- package/dist/cli/wrapper.d.ts.map +1 -1
- package/dist/cli/wrapper.js +19 -54
- package/dist/cli/wrapper.js.map +1 -1
- package/dist/commands/helpers.js +1 -1
- package/dist/commands/runner.d.ts.map +1 -1
- package/dist/commands/runner.js +22 -18
- package/dist/commands/runner.js.map +1 -1
- package/dist/config/constants.d.ts.map +1 -1
- package/dist/config/constants.js +37 -52
- package/dist/config/constants.js.map +1 -1
- package/dist/utils/arg-parser.d.ts.map +1 -1
- package/dist/utils/arg-parser.js +23 -8
- package/dist/utils/arg-parser.js.map +1 -1
- package/dist/utils/bitbucket-client.d.ts +24 -37
- package/dist/utils/bitbucket-client.d.ts.map +1 -1
- package/dist/utils/bitbucket-client.js +38 -52
- package/dist/utils/bitbucket-client.js.map +1 -1
- package/dist/utils/bitbucket-utils.d.ts +48 -68
- package/dist/utils/bitbucket-utils.d.ts.map +1 -1
- package/dist/utils/bitbucket-utils.js +100 -125
- package/dist/utils/bitbucket-utils.js.map +1 -1
- package/dist/utils/config-loader.d.ts +10 -29
- package/dist/utils/config-loader.d.ts.map +1 -1
- package/dist/utils/config-loader.js +277 -51
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -3
- package/tests/integration/cli-integration.test.ts +96 -217
- package/tests/unit/cli/wrapper.test.ts +28 -137
- package/tests/unit/commands/runner.test.ts +69 -197
- package/tests/unit/utils/arg-parser.test.ts +53 -4
- package/tests/unit/utils/config-loader.test.ts +441 -106
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.0](https://github.com/hesedcasa/bbk-cli/compare/bbk-cli-v1.1.3...bbk-cli-v1.2.0) (2026-01-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🎉 Features
|
|
7
|
+
|
|
8
|
+
* add interactive config setup command with pre-population ([#18](https://github.com/hesedcasa/bbk-cli/issues/18)) ([7e802ff](https://github.com/hesedcasa/bbk-cli/commit/7e802fffaee7b62fe2edadaa65e29ebc8e2b452a))
|
|
9
|
+
|
|
10
|
+
## [1.1.3](https://github.com/hesedcasa/bbk-cli/compare/bbk-cli-v1.1.2...bbk-cli-v1.1.3) (2026-01-29)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ♻️ Chores
|
|
14
|
+
|
|
15
|
+
* migrate config system from YAML to INI format ([#12](https://github.com/hesedcasa/bbk-cli/issues/12)) ([2276ddf](https://github.com/hesedcasa/bbk-cli/commit/2276ddf0414814345e52016916120858cb74178e))
|
|
16
|
+
|
|
3
17
|
## [1.1.2](https://github.com/hesedcasa/bbk-cli/compare/bbk-cli-v1.1.1...bbk-cli-v1.1.2) (2026-01-27)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -8,8 +8,7 @@ A powerful command-line interface for Bitbucket interaction with support for rep
|
|
|
8
8
|
|
|
9
9
|
- 💻 **Interactive REPL** for Bitbucket exploration and management
|
|
10
10
|
- 🚀 **Headless mode** for one-off command execution and automation
|
|
11
|
-
-
|
|
12
|
-
- 🏢 **Default workspace support** - omit workspace parameter when configured
|
|
11
|
+
- 🏢 **Default workspace support** - set once in config, omit from commands
|
|
13
12
|
- 📊 **Multiple output formats**: JSON or TOON
|
|
14
13
|
- 📦 **Repository management**: list and view repository details
|
|
15
14
|
- 🔀 **Pull request operations**: list, view, and create pull requests with auto-reviewers
|
|
@@ -34,129 +33,146 @@ npm install -g bbk-cli
|
|
|
34
33
|
|
|
35
34
|
## Configuration
|
|
36
35
|
|
|
37
|
-
###
|
|
36
|
+
### Recommended: Interactive Setup
|
|
37
|
+
|
|
38
|
+
The easiest way to configure bbk-cli is using the interactive config command:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
bbk-cli config
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The interactive setup prompts for:
|
|
45
|
+
|
|
46
|
+
1. **email** (required) - Your Bitbucket account email
|
|
47
|
+
2. **api_token** (required) - Your Bitbucket API token
|
|
48
|
+
3. **workspace** (optional) - Default workspace to use with commands
|
|
49
|
+
4. **format** (optional) - Default output format (`json` or `toon`, defaults to `json`)
|
|
50
|
+
|
|
51
|
+
### Creating an API Token
|
|
52
|
+
|
|
53
|
+
Before running the config command, create an API token:
|
|
38
54
|
|
|
39
55
|
1. Go to [Atlassian API Tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
|
|
40
56
|
2. Click "Create API token"
|
|
41
57
|
3. Give it a label (e.g., "BBK CLI")
|
|
42
58
|
4. Copy the generated token
|
|
43
59
|
|
|
44
|
-
###
|
|
60
|
+
### Manual Configuration (Alternative)
|
|
45
61
|
|
|
46
|
-
|
|
62
|
+
You can also manually create the configuration file at `~/.bbkcli`:
|
|
47
63
|
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
email: your-email@example.com
|
|
53
|
-
apiToken: YOUR_API_TOKEN_HERE
|
|
54
|
-
defaultWorkspace: myworkspace # Optional: default workspace for commands
|
|
64
|
+
```ini
|
|
65
|
+
[auth]
|
|
66
|
+
email=your-email@example.com
|
|
67
|
+
api_token=YOUR_API_TOKEN_HERE
|
|
55
68
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
# Bitbucket API Configuration
|
|
61
|
-
|
|
62
|
-
This file stores your Bitbucket API connection profiles.
|
|
69
|
+
[defaults]
|
|
70
|
+
workspace=myworkspace
|
|
71
|
+
format=json
|
|
63
72
|
```
|
|
64
73
|
|
|
65
74
|
### Configuration Options
|
|
66
75
|
|
|
67
|
-
- **
|
|
76
|
+
- **[auth] section** - Required authentication credentials
|
|
68
77
|
- `email`: Your Bitbucket email
|
|
69
|
-
- `
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
```yaml
|
|
78
|
-
---
|
|
79
|
-
profiles:
|
|
80
|
-
personal:
|
|
81
|
-
email: john@email.com
|
|
82
|
-
apiToken: <api_token>
|
|
83
|
-
defaultWorkspace: personal-workspace
|
|
84
|
-
|
|
85
|
-
work:
|
|
86
|
-
email: john@company.com
|
|
87
|
-
apiToken: <api_token>
|
|
88
|
-
defaultWorkspace: company-workspace
|
|
89
|
-
|
|
90
|
-
defaultProfile: personal
|
|
91
|
-
defaultFormat: json
|
|
92
|
-
---
|
|
93
|
-
```
|
|
78
|
+
- `api_token`: Your Bitbucket API token
|
|
79
|
+
|
|
80
|
+
- **[defaults] section** - Optional default settings
|
|
81
|
+
- `workspace`: Default workspace to use if not specified in commands (recommended)
|
|
82
|
+
- `format`: Default output format (`json` or `toon`)
|
|
83
|
+
|
|
84
|
+
**Tip:** Setting a default workspace in your config file allows you to omit the workspace parameter from all commands, making them much more concise. You can still specify a workspace parameter in any command if you need to work with a different workspace.
|
|
94
85
|
|
|
95
86
|
## Quick Start
|
|
96
87
|
|
|
88
|
+
### First-Time Setup
|
|
89
|
+
|
|
90
|
+
Before using bbk-cli, configure your credentials:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
bbk-cli config
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Follow the interactive prompts to enter your Bitbucket email and API token.
|
|
97
|
+
|
|
97
98
|
### Interactive Mode
|
|
98
99
|
|
|
99
100
|
Start the CLI and interact with Bitbucket through a REPL:
|
|
100
101
|
|
|
101
102
|
```bash
|
|
102
|
-
|
|
103
|
+
bbk-cli
|
|
103
104
|
```
|
|
104
105
|
|
|
105
106
|
Once started, you'll see the `bbk>` prompt:
|
|
106
107
|
|
|
108
|
+
**Tip:** Set a default workspace in your config file (see Configuration section) to omit the workspace parameter from all commands.
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
bbk> list-repositories
|
|
112
|
+
bbk> get-repository {"repoSlug":"my-repo"}
|
|
113
|
+
bbk> list-pullrequests {"repoSlug":"my-repo","state":"OPEN"}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Note:** You can optionally specify a workspace parameter if you need to work with a different workspace:
|
|
117
|
+
|
|
107
118
|
```
|
|
108
|
-
bbk> list-repositories {"workspace":"
|
|
109
|
-
bbk> list-repositories {} # Uses profile's defaultWorkspace
|
|
110
|
-
bbk> get-repository {"workspace":"myworkspace","repoSlug":"my-repo"}
|
|
111
|
-
bbk> get-repository {"repoSlug":"my-repo"} # Uses profile's defaultWorkspace
|
|
112
|
-
bbk> list-pullrequests {"workspace":"myworkspace","repoSlug":"my-repo","state":"OPEN"}
|
|
113
|
-
bbk> list-pullrequests {"repoSlug":"my-repo","state":"OPEN"} # Uses defaultWorkspace
|
|
119
|
+
bbk> list-repositories {"workspace":"other-workspace"}
|
|
114
120
|
```
|
|
115
121
|
|
|
116
122
|
### Headless Mode
|
|
117
123
|
|
|
118
|
-
Execute single commands directly:
|
|
124
|
+
Execute single commands directly. (Note: Run `bbk-cli config` first to set up credentials):
|
|
125
|
+
|
|
126
|
+
**Tip:** Set a default workspace in your config file to omit the workspace parameter from commands.
|
|
119
127
|
|
|
120
128
|
```bash
|
|
121
129
|
# Test connection
|
|
122
|
-
|
|
130
|
+
bbk-cli test-connection
|
|
123
131
|
|
|
124
132
|
# List all repositories
|
|
125
|
-
|
|
133
|
+
bbk-cli list-repositories
|
|
126
134
|
|
|
127
135
|
# Get repository details
|
|
128
|
-
|
|
136
|
+
bbk-cli get-repository '{"repoSlug":"my-repo"}'
|
|
129
137
|
|
|
130
138
|
# List pull requests
|
|
131
|
-
|
|
139
|
+
bbk-cli list-pullrequests '{"repoSlug":"my-repo","state":"OPEN"}'
|
|
132
140
|
|
|
133
141
|
# Get pull request details
|
|
134
|
-
|
|
142
|
+
bbk-cli get-pullrequest '{"repoSlug":"my-repo","pullRequestId":123}'
|
|
135
143
|
|
|
136
144
|
# Create a new pull request
|
|
137
|
-
|
|
145
|
+
bbk-cli create-pullrequest '{"repoSlug":"my-repo","title":"Feature PR","sourceBranch":"feature/new","destinationBranch":"main"}'
|
|
138
146
|
|
|
139
147
|
# List issues
|
|
140
|
-
|
|
148
|
+
bbk-cli list-issues '{"repoSlug":"my-repo"}'
|
|
141
149
|
|
|
142
150
|
# Create an issue
|
|
143
|
-
|
|
151
|
+
bbk-cli create-issue '{"repoSlug":"my-repo","title":"Bug found","kind":"bug"}'
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Note:** You can optionally specify a workspace parameter if working with multiple workspaces:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
bbk-cli list-repositories '{"workspace":"other-workspace"}'
|
|
144
158
|
```
|
|
145
159
|
|
|
146
160
|
## Available Commands
|
|
147
161
|
|
|
162
|
+
**Note:** All commands support an optional `workspace` parameter if you need to work with a different workspace than your default.
|
|
163
|
+
|
|
148
164
|
### Repository Commands
|
|
149
165
|
|
|
150
166
|
- **list-repositories** - List all repositories in a workspace
|
|
151
167
|
|
|
152
168
|
```bash
|
|
153
|
-
bbk> list-repositories
|
|
154
|
-
bbk> list-repositories {"
|
|
169
|
+
bbk> list-repositories
|
|
170
|
+
bbk> list-repositories {"format":"json"}
|
|
155
171
|
```
|
|
156
172
|
|
|
157
173
|
- **get-repository** - Get details of a specific repository
|
|
158
174
|
```bash
|
|
159
|
-
bbk> get-repository {"
|
|
175
|
+
bbk> get-repository {"repoSlug":"my-repo"}
|
|
160
176
|
```
|
|
161
177
|
|
|
162
178
|
### Pull Request Commands
|
|
@@ -164,21 +180,21 @@ npx bbk-cli create-issue '{"workspace":"myworkspace","repoSlug":"my-repo","title
|
|
|
164
180
|
- **list-pullrequests** - List pull requests in a repository
|
|
165
181
|
|
|
166
182
|
```bash
|
|
167
|
-
bbk> list-pullrequests {"
|
|
168
|
-
bbk> list-pullrequests {"
|
|
183
|
+
bbk> list-pullrequests {"repoSlug":"my-repo"}
|
|
184
|
+
bbk> list-pullrequests {"repoSlug":"my-repo","state":"OPEN"}
|
|
169
185
|
```
|
|
170
186
|
|
|
171
187
|
- **get-pullrequest** - Get details of a specific pull request
|
|
172
188
|
|
|
173
189
|
```bash
|
|
174
|
-
bbk> get-pullrequest {"
|
|
190
|
+
bbk> get-pullrequest {"repoSlug":"my-repo","pullRequestId":123}
|
|
175
191
|
```
|
|
176
192
|
|
|
177
193
|
- **create-pullrequest** - Create a new pull request
|
|
178
194
|
|
|
179
195
|
```bash
|
|
180
|
-
bbk> create-pullrequest {"
|
|
181
|
-
bbk> create-pullrequest {"
|
|
196
|
+
bbk> create-pullrequest {"repoSlug":"my-repo","title":"Feature PR","sourceBranch":"feature/new","destinationBranch":"main"}
|
|
197
|
+
bbk> create-pullrequest {"repoSlug":"my-repo","title":"Feature PR","sourceBranch":"feature/new","destinationBranch":"main","description":"PR description"}
|
|
182
198
|
```
|
|
183
199
|
|
|
184
200
|
**Note**: This command automatically adds the repository's default reviewers (excluding the PR author) to the pull request.
|
|
@@ -188,7 +204,7 @@ npx bbk-cli create-issue '{"workspace":"myworkspace","repoSlug":"my-repo","title
|
|
|
188
204
|
- **list-branches** - List branches in a repository
|
|
189
205
|
|
|
190
206
|
```bash
|
|
191
|
-
bbk> list-branches {"
|
|
207
|
+
bbk> list-branches {"repoSlug":"my-repo"}
|
|
192
208
|
```
|
|
193
209
|
|
|
194
210
|
### Commit Commands
|
|
@@ -196,8 +212,8 @@ npx bbk-cli create-issue '{"workspace":"myworkspace","repoSlug":"my-repo","title
|
|
|
196
212
|
- **list-commits** - List commits in a repository
|
|
197
213
|
|
|
198
214
|
```bash
|
|
199
|
-
bbk> list-commits {"
|
|
200
|
-
bbk> list-commits {"
|
|
215
|
+
bbk> list-commits {"repoSlug":"my-repo"}
|
|
216
|
+
bbk> list-commits {"repoSlug":"my-repo","branch":"main"}
|
|
201
217
|
```
|
|
202
218
|
|
|
203
219
|
### Issue Commands
|
|
@@ -205,20 +221,20 @@ npx bbk-cli create-issue '{"workspace":"myworkspace","repoSlug":"my-repo","title
|
|
|
205
221
|
- **list-issues** - List issues in a repository
|
|
206
222
|
|
|
207
223
|
```bash
|
|
208
|
-
bbk> list-issues {"
|
|
224
|
+
bbk> list-issues {"repoSlug":"my-repo"}
|
|
209
225
|
```
|
|
210
226
|
|
|
211
227
|
- **get-issue** - Get details of a specific issue
|
|
212
228
|
|
|
213
229
|
```bash
|
|
214
|
-
bbk> get-issue {"
|
|
230
|
+
bbk> get-issue {"repoSlug":"my-repo","issueId":123}
|
|
215
231
|
```
|
|
216
232
|
|
|
217
233
|
- **create-issue** - Create a new issue
|
|
218
234
|
|
|
219
235
|
```bash
|
|
220
|
-
bbk> create-issue {"
|
|
221
|
-
bbk> create-issue {"
|
|
236
|
+
bbk> create-issue {"repoSlug":"my-repo","title":"Bug found"}
|
|
237
|
+
bbk> create-issue {"repoSlug":"my-repo","title":"Bug found","content":"Description here","kind":"bug","priority":"major"}
|
|
222
238
|
```
|
|
223
239
|
|
|
224
240
|
### Pipeline Commands
|
|
@@ -226,27 +242,23 @@ npx bbk-cli create-issue '{"workspace":"myworkspace","repoSlug":"my-repo","title
|
|
|
226
242
|
- **list-pipelines** - List pipelines in a repository
|
|
227
243
|
|
|
228
244
|
```bash
|
|
229
|
-
bbk> list-pipelines {"
|
|
245
|
+
bbk> list-pipelines {"repoSlug":"my-repo"}
|
|
230
246
|
```
|
|
231
247
|
|
|
232
248
|
### User Commands
|
|
233
249
|
|
|
234
250
|
- **get-user** - Get user information
|
|
235
251
|
```bash
|
|
236
|
-
bbk> get-user
|
|
237
|
-
bbk> get-user {"userId":"04b587de-b844-4c54-b4ec-1e33157fcc15
|
|
252
|
+
bbk> get-user # Get current authenticated user
|
|
253
|
+
bbk> get-user {"userId":"04b587de-b844-4c54-b4ec-1e33157fcc15"} # Get specific user by UUID
|
|
238
254
|
```
|
|
239
255
|
|
|
240
|
-
"} # Get specific user by UUID
|
|
241
|
-
|
|
242
|
-
````
|
|
243
|
-
|
|
244
256
|
### Utility Commands
|
|
245
257
|
|
|
246
258
|
- **test-connection** - Test Bitbucket API connection
|
|
247
|
-
```bash
|
|
248
|
-
bbk> test-connection
|
|
249
|
-
|
|
259
|
+
```bash
|
|
260
|
+
bbk> test-connection
|
|
261
|
+
```
|
|
250
262
|
|
|
251
263
|
## Interactive Mode Commands
|
|
252
264
|
|
|
@@ -254,8 +266,6 @@ Special commands available in the REPL:
|
|
|
254
266
|
|
|
255
267
|
- **commands** - List all available commands
|
|
256
268
|
- **help** or **?** - Show help message
|
|
257
|
-
- **profile \<name\>** - Switch to a different profile
|
|
258
|
-
- **profiles** - List all available profiles
|
|
259
269
|
- **format \<type\>** - Set output format (json, toon)
|
|
260
270
|
- **clear** - Clear the screen
|
|
261
271
|
- **exit**, **quit**, or **q** - Exit the CLI
|
|
@@ -268,7 +278,11 @@ Machine-readable JSON format (default):
|
|
|
268
278
|
|
|
269
279
|
```bash
|
|
270
280
|
bbk> format json
|
|
271
|
-
bbk> list-repositories
|
|
281
|
+
bbk> list-repositories
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
bbk-cli list-repositories '{"format":"json"}'
|
|
272
286
|
```
|
|
273
287
|
|
|
274
288
|
### TOON Format
|
|
@@ -277,18 +291,21 @@ bbk> list-repositories {"workspace":"myworkspace"}
|
|
|
277
291
|
|
|
278
292
|
```bash
|
|
279
293
|
bbk> format toon
|
|
280
|
-
bbk> list-pullrequests {"
|
|
294
|
+
bbk> list-pullrequests {"repoSlug":"my-repo"}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
bbk-cli list-repositories '{"format":"toon"}'
|
|
281
299
|
```
|
|
282
300
|
|
|
283
301
|
## Security
|
|
284
302
|
|
|
285
303
|
⚠️ **Important Security Notes:**
|
|
286
304
|
|
|
287
|
-
1. **Never commit**
|
|
288
|
-
2.
|
|
305
|
+
1. **Never commit** `~/.bbkcli` to version control
|
|
306
|
+
2. The config file is created with secure permissions
|
|
289
307
|
3. Keep your API tokens secure and rotate them periodically
|
|
290
|
-
4.
|
|
291
|
-
5. API tokens have the same permissions as your user account
|
|
308
|
+
4. API tokens have the same permissions as your user account
|
|
292
309
|
|
|
293
310
|
## Development
|
|
294
311
|
|
|
@@ -325,49 +342,13 @@ npm run find-deadcode # Find unused exports
|
|
|
325
342
|
npm run pre-commit # Run format + find-deadcode
|
|
326
343
|
```
|
|
327
344
|
|
|
328
|
-
## Examples
|
|
329
|
-
|
|
330
|
-
### Basic Workflow
|
|
331
|
-
|
|
332
|
-
```bash
|
|
333
|
-
# Start interactive mode
|
|
334
|
-
npx bbk-cli
|
|
335
|
-
|
|
336
|
-
# List all repositories in workspace
|
|
337
|
-
bbk> list-repositories {"workspace":"myworkspace"}
|
|
338
|
-
|
|
339
|
-
# Get specific repository
|
|
340
|
-
bbk> get-repository {"workspace":"myworkspace","repoSlug":"my-repo"}
|
|
341
|
-
|
|
342
|
-
# List pull requests
|
|
343
|
-
bbk> list-pullrequests {"workspace":"myworkspace","repoSlug":"my-repo","state":"OPEN"}
|
|
344
|
-
|
|
345
|
-
# Get specific pull request
|
|
346
|
-
bbk> get-pullrequest {"workspace":"myworkspace","repoSlug":"my-repo","pullRequestId":123}
|
|
347
|
-
|
|
348
|
-
# Create new pull request
|
|
349
|
-
bbk> create-pullrequest {"workspace":"myworkspace","repoSlug":"my-repo","title":"Feature PR","sourceBranch":"feature/new","destinationBranch":"main"}
|
|
350
|
-
|
|
351
|
-
# List branches
|
|
352
|
-
bbk> list-branches {"workspace":"myworkspace","repoSlug":"my-repo"}
|
|
353
|
-
|
|
354
|
-
# List commits
|
|
355
|
-
bbk> list-commits {"workspace":"myworkspace","repoSlug":"my-repo","branch":"main"}
|
|
356
|
-
|
|
357
|
-
# List issues
|
|
358
|
-
bbk> list-issues {"workspace":"myworkspace","repoSlug":"my-repo"}
|
|
359
|
-
|
|
360
|
-
# Create issue
|
|
361
|
-
bbk> create-issue {"workspace":"myworkspace","repoSlug":"my-repo","title":"Bug found","kind":"bug"}
|
|
362
|
-
```
|
|
363
|
-
|
|
364
345
|
## Troubleshooting
|
|
365
346
|
|
|
366
347
|
### Connection Issues
|
|
367
348
|
|
|
368
349
|
```bash
|
|
369
350
|
# Test your connection
|
|
370
|
-
|
|
351
|
+
bbk-cli test-connection
|
|
371
352
|
|
|
372
353
|
# Common issues:
|
|
373
354
|
# 1. Invalid API token - regenerate credentials
|
|
@@ -381,7 +362,7 @@ npx bbk-cli test-connection
|
|
|
381
362
|
|
|
382
363
|
### Permission Errors
|
|
383
364
|
|
|
384
|
-
- API token
|
|
365
|
+
- API token inherits your user permissions
|
|
385
366
|
- Check that your Bitbucket account has access to the workspace/repository
|
|
386
367
|
- Some operations require specific repository permissions
|
|
387
368
|
- Pull request creation requires write access to the repository
|
package/dist/cli/wrapper.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../src/cli/wrapper.ts"],"names":[],"mappings":"AAuBA;;GAEG;AACH,qBAAa,OAAO;IAClB,OAAO,CAAC,EAAE,CAAqB;IAC/B,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../src/cli/wrapper.ts"],"names":[],"mappings":"AAuBA;;GAEG;AACH,qBAAa,OAAO;IAClB,OAAO,CAAC,EAAE,CAAqB;IAC/B,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,aAAa,CAA2B;;IAUhD;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAa9B;;;OAGG;YACW,aAAa;IA0D3B;;;;OAIG;YACW,UAAU;IA2JxB;;OAEG;IACH,OAAO,CAAC,SAAS;IAmCjB;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA6B5B;;OAEG;YACW,UAAU;CAKzB"}
|