bbk-cli 1.1.1 → 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 +21 -0
- package/README.md +110 -125
- 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 +38 -39
- 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 +25 -38
- package/dist/utils/bitbucket-client.d.ts.map +1 -1
- package/dist/utils/bitbucket-client.js +39 -53
- package/dist/utils/bitbucket-client.js.map +1 -1
- package/dist/utils/bitbucket-utils.d.ts +50 -67
- package/dist/utils/bitbucket-utils.d.ts.map +1 -1
- package/dist/utils/bitbucket-utils.js +108 -126
- 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 +97 -218
- package/tests/unit/cli/wrapper.test.ts +30 -139
- package/tests/unit/commands/runner.test.ts +71 -199
- 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,26 @@
|
|
|
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
|
+
|
|
17
|
+
## [1.1.2](https://github.com/hesedcasa/bbk-cli/compare/bbk-cli-v1.1.1...bbk-cli-v1.1.2) (2026-01-27)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 🛠️ Fixes
|
|
21
|
+
|
|
22
|
+
* fix get-user return error when pass in username ([#10](https://github.com/hesedcasa/bbk-cli/issues/10)) ([732359f](https://github.com/hesedcasa/bbk-cli/commit/732359fb65f3165bb2fd93febaca9594497a07e4))
|
|
23
|
+
|
|
3
24
|
## [1.1.1](https://github.com/hesedcasa/bbk-cli/compare/bbk-cli-v1.1.0...bbk-cli-v1.1.1) (2026-01-27)
|
|
4
25
|
|
|
5
26
|
|
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
|
-
###
|
|
45
|
-
|
|
46
|
-
Create a configuration file at `.claude/bitbucket-config.local.md` in your project root:
|
|
47
|
-
|
|
48
|
-
```markdown
|
|
49
|
-
---
|
|
50
|
-
profiles:
|
|
51
|
-
cloud:
|
|
52
|
-
email: your-email@example.com
|
|
53
|
-
apiToken: YOUR_API_TOKEN_HERE
|
|
54
|
-
defaultWorkspace: myworkspace # Optional: default workspace for commands
|
|
60
|
+
### Manual Configuration (Alternative)
|
|
55
61
|
|
|
56
|
-
|
|
57
|
-
defaultFormat: json
|
|
58
|
-
---
|
|
62
|
+
You can also manually create the configuration file at `~/.bbkcli`:
|
|
59
63
|
|
|
60
|
-
|
|
64
|
+
```ini
|
|
65
|
+
[auth]
|
|
66
|
+
email=your-email@example.com
|
|
67
|
+
api_token=YOUR_API_TOKEN_HERE
|
|
61
68
|
|
|
62
|
-
|
|
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
|
+
|
|
107
110
|
```
|
|
108
|
-
bbk> list-repositories
|
|
109
|
-
bbk>
|
|
110
|
-
bbk>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
+
|
|
118
|
+
```
|
|
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,15 +242,15 @@ 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 {"
|
|
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
256
|
### Utility Commands
|
|
@@ -250,8 +266,6 @@ Special commands available in the REPL:
|
|
|
250
266
|
|
|
251
267
|
- **commands** - List all available commands
|
|
252
268
|
- **help** or **?** - Show help message
|
|
253
|
-
- **profile \<name\>** - Switch to a different profile
|
|
254
|
-
- **profiles** - List all available profiles
|
|
255
269
|
- **format \<type\>** - Set output format (json, toon)
|
|
256
270
|
- **clear** - Clear the screen
|
|
257
271
|
- **exit**, **quit**, or **q** - Exit the CLI
|
|
@@ -264,7 +278,11 @@ Machine-readable JSON format (default):
|
|
|
264
278
|
|
|
265
279
|
```bash
|
|
266
280
|
bbk> format json
|
|
267
|
-
bbk> list-repositories
|
|
281
|
+
bbk> list-repositories
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
bbk-cli list-repositories '{"format":"json"}'
|
|
268
286
|
```
|
|
269
287
|
|
|
270
288
|
### TOON Format
|
|
@@ -273,18 +291,21 @@ bbk> list-repositories {"workspace":"myworkspace"}
|
|
|
273
291
|
|
|
274
292
|
```bash
|
|
275
293
|
bbk> format toon
|
|
276
|
-
bbk> list-pullrequests {"
|
|
294
|
+
bbk> list-pullrequests {"repoSlug":"my-repo"}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
bbk-cli list-repositories '{"format":"toon"}'
|
|
277
299
|
```
|
|
278
300
|
|
|
279
301
|
## Security
|
|
280
302
|
|
|
281
303
|
⚠️ **Important Security Notes:**
|
|
282
304
|
|
|
283
|
-
1. **Never commit**
|
|
284
|
-
2.
|
|
305
|
+
1. **Never commit** `~/.bbkcli` to version control
|
|
306
|
+
2. The config file is created with secure permissions
|
|
285
307
|
3. Keep your API tokens secure and rotate them periodically
|
|
286
|
-
4.
|
|
287
|
-
5. API tokens have the same permissions as your user account
|
|
308
|
+
4. API tokens have the same permissions as your user account
|
|
288
309
|
|
|
289
310
|
## Development
|
|
290
311
|
|
|
@@ -321,49 +342,13 @@ npm run find-deadcode # Find unused exports
|
|
|
321
342
|
npm run pre-commit # Run format + find-deadcode
|
|
322
343
|
```
|
|
323
344
|
|
|
324
|
-
## Examples
|
|
325
|
-
|
|
326
|
-
### Basic Workflow
|
|
327
|
-
|
|
328
|
-
```bash
|
|
329
|
-
# Start interactive mode
|
|
330
|
-
npx bbk-cli
|
|
331
|
-
|
|
332
|
-
# List all repositories in workspace
|
|
333
|
-
bbk> list-repositories {"workspace":"myworkspace"}
|
|
334
|
-
|
|
335
|
-
# Get specific repository
|
|
336
|
-
bbk> get-repository {"workspace":"myworkspace","repoSlug":"my-repo"}
|
|
337
|
-
|
|
338
|
-
# List pull requests
|
|
339
|
-
bbk> list-pullrequests {"workspace":"myworkspace","repoSlug":"my-repo","state":"OPEN"}
|
|
340
|
-
|
|
341
|
-
# Get specific pull request
|
|
342
|
-
bbk> get-pullrequest {"workspace":"myworkspace","repoSlug":"my-repo","pullRequestId":123}
|
|
343
|
-
|
|
344
|
-
# Create new pull request
|
|
345
|
-
bbk> create-pullrequest {"workspace":"myworkspace","repoSlug":"my-repo","title":"Feature PR","sourceBranch":"feature/new","destinationBranch":"main"}
|
|
346
|
-
|
|
347
|
-
# List branches
|
|
348
|
-
bbk> list-branches {"workspace":"myworkspace","repoSlug":"my-repo"}
|
|
349
|
-
|
|
350
|
-
# List commits
|
|
351
|
-
bbk> list-commits {"workspace":"myworkspace","repoSlug":"my-repo","branch":"main"}
|
|
352
|
-
|
|
353
|
-
# List issues
|
|
354
|
-
bbk> list-issues {"workspace":"myworkspace","repoSlug":"my-repo"}
|
|
355
|
-
|
|
356
|
-
# Create issue
|
|
357
|
-
bbk> create-issue {"workspace":"myworkspace","repoSlug":"my-repo","title":"Bug found","kind":"bug"}
|
|
358
|
-
```
|
|
359
|
-
|
|
360
345
|
## Troubleshooting
|
|
361
346
|
|
|
362
347
|
### Connection Issues
|
|
363
348
|
|
|
364
349
|
```bash
|
|
365
350
|
# Test your connection
|
|
366
|
-
|
|
351
|
+
bbk-cli test-connection
|
|
367
352
|
|
|
368
353
|
# Common issues:
|
|
369
354
|
# 1. Invalid API token - regenerate credentials
|
|
@@ -377,7 +362,7 @@ npx bbk-cli test-connection
|
|
|
377
362
|
|
|
378
363
|
### Permission Errors
|
|
379
364
|
|
|
380
|
-
- API token
|
|
365
|
+
- API token inherits your user permissions
|
|
381
366
|
- Check that your Bitbucket account has access to the workspace/repository
|
|
382
367
|
- Some operations require specific repository permissions
|
|
383
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"}
|