@salesforce/plugin-devops-center 1.2.28 → 1.4.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.
Files changed (58) hide show
  1. package/README.md +184 -89
  2. package/bin/dev.js +0 -0
  3. package/bin/run.js +0 -0
  4. package/lib/commands/devops/pipeline/activate.js +5 -0
  5. package/lib/commands/devops/pipeline/activate.js.map +1 -1
  6. package/lib/commands/devops/pipeline/create.d.ts +2 -1
  7. package/lib/commands/devops/pipeline/create.js +37 -7
  8. package/lib/commands/devops/pipeline/create.js.map +1 -1
  9. package/lib/commands/devops/pipeline/{attach-project.d.ts → project/add.d.ts} +2 -2
  10. package/lib/commands/devops/pipeline/{attach-project.js → project/add.js} +5 -5
  11. package/lib/commands/devops/pipeline/project/add.js.map +1 -0
  12. package/lib/commands/devops/pull-request/create.d.ts +0 -2
  13. package/lib/commands/devops/pull-request/create.js +8 -40
  14. package/lib/commands/devops/pull-request/create.js.map +1 -1
  15. package/lib/commands/devops/stage/branch/add.d.ts +17 -0
  16. package/lib/commands/devops/stage/branch/add.js +110 -0
  17. package/lib/commands/devops/stage/branch/add.js.map +1 -0
  18. package/lib/commands/devops/stage/environment/add.d.ts +18 -0
  19. package/lib/commands/devops/stage/environment/add.js +141 -0
  20. package/lib/commands/devops/stage/environment/add.js.map +1 -0
  21. package/lib/commands/devops/work-item/{status/update.d.ts → update.d.ts} +6 -4
  22. package/lib/commands/devops/work-item/{status/update.js → update.js} +30 -9
  23. package/lib/commands/devops/work-item/update.js.map +1 -0
  24. package/lib/utils/addStageBranch.d.ts +22 -0
  25. package/lib/utils/addStageBranch.js +48 -0
  26. package/lib/utils/addStageBranch.js.map +1 -0
  27. package/lib/utils/addStageEnvironment.d.ts +92 -0
  28. package/lib/utils/addStageEnvironment.js +120 -0
  29. package/lib/utils/addStageEnvironment.js.map +1 -0
  30. package/lib/utils/createPipeline.d.ts +14 -1
  31. package/lib/utils/createPipeline.js +52 -6
  32. package/lib/utils/createPipeline.js.map +1 -1
  33. package/lib/utils/createProject.js +1 -0
  34. package/lib/utils/createProject.js.map +1 -1
  35. package/lib/utils/createPullRequest.d.ts +7 -19
  36. package/lib/utils/createPullRequest.js +49 -121
  37. package/lib/utils/createPullRequest.js.map +1 -1
  38. package/lib/utils/{updateWorkItemStatus.d.ts → updateWorkItem.d.ts} +12 -14
  39. package/lib/utils/{updateWorkItemStatus.js → updateWorkItem.js} +28 -26
  40. package/lib/utils/updateWorkItem.js.map +1 -0
  41. package/messages/devops.pipeline.create.md +26 -6
  42. package/messages/devops.pull-request.create.md +6 -30
  43. package/messages/devops.stage.branch.add.md +46 -0
  44. package/messages/devops.stage.environment.add.md +65 -0
  45. package/messages/devops.work-item.update.md +45 -0
  46. package/npm-shrinkwrap.json +2 -2
  47. package/oclif.manifest.json +470 -267
  48. package/package.json +3 -3
  49. package/schemas/devops-pull__request-create.json +0 -3
  50. package/schemas/devops-stage-branch-add.json +34 -0
  51. package/schemas/devops-stage-environment-add.json +47 -0
  52. package/schemas/{devops-work__item-status-update.json → devops-work__item-update.json} +8 -2
  53. package/lib/commands/devops/pipeline/attach-project.js.map +0 -1
  54. package/lib/commands/devops/work-item/status/update.js.map +0 -1
  55. package/lib/utils/updateWorkItemStatus.js.map +0 -1
  56. package/messages/devops.work-item.status.update.md +0 -29
  57. /package/messages/{devops.pipeline.attach-project.md → devops.pipeline.project.add.md} +0 -0
  58. /package/schemas/{devops-pipeline-attach__project.json → devops-pipeline-project-add.json} +0 -0
package/README.md CHANGED
@@ -57,15 +57,17 @@ sf plugins
57
57
  <!-- commands -->
58
58
 
59
59
  - [`sf devops pipeline activate`](#sf-devops-pipeline-activate)
60
- - [`sf devops pipeline attach-project`](#sf-devops-pipeline-attach-project)
61
60
  - [`sf devops pipeline create`](#sf-devops-pipeline-create)
61
+ - [`sf devops pipeline project add`](#sf-devops-pipeline-project-add)
62
62
  - [`sf devops pipeline stage add`](#sf-devops-pipeline-stage-add)
63
63
  - [`sf devops project create`](#sf-devops-project-create)
64
64
  - [`sf devops project list`](#sf-devops-project-list)
65
65
  - [`sf devops pull-request create`](#sf-devops-pull-request-create)
66
+ - [`sf devops stage branch add`](#sf-devops-stage-branch-add)
67
+ - [`sf devops stage environment add`](#sf-devops-stage-environment-add)
66
68
  - [`sf devops work-item create`](#sf-devops-work-item-create)
67
69
  - [`sf devops work-item list`](#sf-devops-work-item-list)
68
- - [`sf devops work-item status update`](#sf-devops-work-item-status-update)
70
+ - [`sf devops work-item update`](#sf-devops-work-item-update)
69
71
  - [`sf project deploy pipeline quick`](#sf-project-deploy-pipeline-quick)
70
72
  - [`sf project deploy pipeline report`](#sf-project-deploy-pipeline-report)
71
73
  - [`sf project deploy pipeline resume`](#sf-project-deploy-pipeline-resume)
@@ -102,95 +104,103 @@ EXAMPLES
102
104
  $ sf devops pipeline activate --target-org my-devops-org --pipeline-id 0XB000000000001
103
105
  ```
104
106
 
105
- _See code: [src/commands/devops/pipeline/activate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/pipeline/activate.ts)_
107
+ _See code: [src/commands/devops/pipeline/activate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/pipeline/activate.ts)_
106
108
 
107
- ## `sf devops pipeline attach-project`
109
+ ## `sf devops pipeline create`
108
110
 
109
- Attach a DevOps Center project to a pipeline.
111
+ Create a DevOps Center pipeline.
110
112
 
111
113
  ```
112
114
  USAGE
113
- $ sf devops pipeline attach-project -o <value> --pipeline-id <value> --project-id <value> [--json] [--flags-dir <value>]
114
- [--api-version <value>]
115
+ $ sf devops pipeline create -o <value> -n <value> -r <value> [--json] [--flags-dir <value>] [--api-version <value>]
116
+ [--repo-type github|bitbucket] [--create-repo] [--repo-owner <value>] [--bitbucket-workspace <value>]
117
+ [--bitbucket-project-key <value>] [-d <value>]
115
118
 
116
119
  FLAGS
117
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
118
- configuration variable is already set.
119
- --api-version=<value> Override the api version used for api requests made by this command
120
- --pipeline-id=<value> (required) ID of the pipeline.
121
- --project-id=<value> (required) ID of the DevOps Center project.
120
+ -d, --description=<value> Description of the pipeline.
121
+ -n, --name=<value> (required) Name of the pipeline.
122
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
123
+ configuration variable is already set.
124
+ -r, --repo=<value> (required) URL of an existing repository or the name of a repository to create.
125
+ --api-version=<value> Override the api version used for api requests made by this command
126
+ --bitbucket-project-key=<value> Bitbucket project key to associate with the repository. Optional when creating a
127
+ Bitbucket repository using '--create-repo'.
128
+ --bitbucket-workspace=<value> Bitbucket workspace that will own the repository. Required when creating a
129
+ Bitbucket repository using '--create-repo'.
130
+ --create-repo Create a repository if it doesn't exist.
131
+ --repo-owner=<value> Owner (organization or user) of the GitHub repository. Required when creating a
132
+ GitHub repository using '--create-repo'.
133
+ --repo-type=<option> Type of the source code repository. Required when creating a repository using
134
+ '--create-repo'.
135
+ <options: github|bitbucket>
122
136
 
123
137
  GLOBAL FLAGS
124
138
  --flags-dir=<value> Import flag values from a directory.
125
139
  --json Format output as json.
126
140
 
127
141
  DESCRIPTION
128
- Attach a DevOps Center project to a pipeline.
142
+ Create a DevOps Center pipeline.
129
143
 
130
- You can attach a project to only one pipeline.
144
+ Provide the URL of an existing repository, or use `--create-repo` with a repository name to create one. After you
145
+ create the pipeline, add stages, and activate the pipeline.
131
146
 
132
147
  EXAMPLES
133
- Attach a project to a pipeline using the project ID and pipeline ID.
148
+ Create a pipeline and associate it with an existing GitHub repository.
134
149
 
135
- $ sf devops pipeline attach-project --target-org my-devops-org --pipeline-id 0XB000000000001 --project-id \
136
- 0Hn000000000001
150
+ $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
151
+ https://github.com/myorg/myrepo
152
+
153
+ Create a pipeline and associate it with a new GitHub repository.
154
+
155
+ $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo my-new-repo --repo-type \
156
+ github --repo-owner myorg --create-repo
157
+
158
+ Create a pipeline and create a new Bitbucket repository.
159
+
160
+ $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo my-new-repo --repo-type \
161
+ bitbucket --bitbucket-workspace myworkspace --bitbucket-project-key PROJ --create-repo
162
+
163
+ Create a pipeline with a description and associate it with an existing Bitbucket repository.
164
+
165
+ $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
166
+ https://bitbucket.org/myworkspace/myrepo --description "Main CI/CD pipeline for production releases"
137
167
  ```
138
168
 
139
- _See code: [src/commands/devops/pipeline/attach-project.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/pipeline/attach-project.ts)_
169
+ _See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/pipeline/create.ts)_
140
170
 
141
- ## `sf devops pipeline create`
171
+ ## `sf devops pipeline project add`
142
172
 
143
- Create a DevOps Center pipeline.
173
+ Attach a DevOps Center project to a pipeline.
144
174
 
145
175
  ```
146
176
  USAGE
147
- $ sf devops pipeline create -o <value> -n <value> -r <value> [--json] [--flags-dir <value>] [--api-version <value>]
148
- [--repo-type github|bitbucket] [--create-repo] [--repo-owner <value>] [--bitbucket-project <value>] [-d <value>]
177
+ $ sf devops pipeline project add -o <value> --pipeline-id <value> --project-id <value> [--json] [--flags-dir <value>]
178
+ [--api-version <value>]
149
179
 
150
180
  FLAGS
151
- -d, --description=<value> Description of the pipeline.
152
- -n, --name=<value> (required) Name of the pipeline.
153
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
154
- configuration variable is already set.
155
- -r, --repo=<value> (required) URL of an existing repository or the name of a repository to create.
156
- --api-version=<value> Override the api version used for api requests made by this command
157
- --bitbucket-project=<value> Bitbucket project key for the repository. Used when creating a Bitbucket repository
158
- with '--create-repo'.
159
- --create-repo Create a repository if it doesn't exist.
160
- --repo-owner=<value> Owner (organization or user) of the repository. Required when creating a repository
161
- using '--create-repo'.
162
- --repo-type=<option> Type of the source code repository. Required when creating a repository using
163
- '--create-repo'.
164
- <options: github|bitbucket>
181
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
182
+ configuration variable is already set.
183
+ --api-version=<value> Override the api version used for api requests made by this command
184
+ --pipeline-id=<value> (required) ID of the pipeline.
185
+ --project-id=<value> (required) ID of the DevOps Center project.
165
186
 
166
187
  GLOBAL FLAGS
167
188
  --flags-dir=<value> Import flag values from a directory.
168
189
  --json Format output as json.
169
190
 
170
191
  DESCRIPTION
171
- Create a DevOps Center pipeline.
192
+ Attach a DevOps Center project to a pipeline.
172
193
 
173
- Provide the URL of an existing repository, or use `--create-repo` with a repository name to create one. After you
174
- create the pipeline, add stages, and activate the pipeline.
194
+ You can attach a project to only one pipeline.
175
195
 
176
196
  EXAMPLES
177
- Create a pipeline and associate it with an existing GitHub repository.
178
-
179
- $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
180
- https://github.com/myorg/myrepo
181
-
182
- Create a pipeline and associate it with a new GitHub repository.
183
-
184
- $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo my-new-repo --repo-type \
185
- github --repo-owner myorg --create-repo
186
-
187
- Create a pipeline with a description and associate it with a Bitbucket repository.
197
+ Attach a project to a pipeline using the project ID and pipeline ID.
188
198
 
189
- $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
190
- https://bitbucket.org/myorg/myrepo --description "Main CI/CD pipeline for production releases"
199
+ $ sf devops pipeline project add --target-org my-devops-org --pipeline-id 0XB000000000001 --project-id \
200
+ 0Hn000000000001
191
201
  ```
192
202
 
193
- _See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/pipeline/create.ts)_
203
+ _See code: [src/commands/devops/pipeline/project/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/pipeline/project/add.ts)_
194
204
 
195
205
  ## `sf devops pipeline stage add`
196
206
 
@@ -231,7 +241,7 @@ EXAMPLES
231
241
  --next-stage-id 0Xc000000000003
232
242
  ```
233
243
 
234
- _See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/pipeline/stage/add.ts)_
244
+ _See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/pipeline/stage/add.ts)_
235
245
 
236
246
  ## `sf devops project create`
237
247
 
@@ -268,7 +278,7 @@ EXAMPLES
268
278
  update"
269
279
  ```
270
280
 
271
- _See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/project/create.ts)_
281
+ _See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/project/create.ts)_
272
282
 
273
283
  ## `sf devops project list`
274
284
 
@@ -303,7 +313,7 @@ EXAMPLES
303
313
  $ sf devops project list --target-org devops-center@example.com
304
314
  ```
305
315
 
306
- _See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/project/list.ts)_
316
+ _See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/project/list.ts)_
307
317
 
308
318
  ## `sf devops pull-request create`
309
319
 
@@ -311,8 +321,8 @@ Create a pull request for a work item branch.
311
321
 
312
322
  ```
313
323
  USAGE
314
- $ sf devops pull-request create -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>] [-w <value>]
315
- [--title <value>] [--body <value>]
324
+ $ sf devops pull-request create -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>] [-w
325
+ <value>]
316
326
 
317
327
  FLAGS
318
328
  -n, --work-item-name=<value> Name of the work item, such as WI-000001.
@@ -320,8 +330,6 @@ FLAGS
320
330
  configuration variable is already set.
321
331
  -w, --work-item-id=<value> ID of the work item.
322
332
  --api-version=<value> Override the api version used for api requests made by this command
323
- --body=<value> Description of the pull request.
324
- --title=<value> Title of the pull request.
325
333
 
326
334
  GLOBAL FLAGS
327
335
  --flags-dir=<value> Import flag values from a directory.
@@ -330,22 +338,103 @@ GLOBAL FLAGS
330
338
  DESCRIPTION
331
339
  Create a pull request for a work item branch.
332
340
 
333
- The pull request title defaults to the work item subject. The work item must have an associated branch and repository.
334
- Requires VCS authentication: set GITHUB_TOKEN (or use `gh auth login`) for GitHub, or set BITBUCKET_TOKEN for
335
- Bitbucket.
341
+ Creates a pull request via the Salesforce DevOps Center API, using the VCS credentials stored in the org. Works with
342
+ GitHub and Bitbucket without requiring local VCS authentication.
336
343
 
337
344
  EXAMPLES
338
- Create a pull request for a work item using the default title.
345
+ Create a pull request for a work item.
339
346
 
340
347
  $ sf devops pull-request create --target-org my-devops-org --work-item-name WI-000001
341
348
 
342
- Create a pull request with a custom title and description.
349
+ Create a pull request using the work item ID.
350
+
351
+ $ sf devops pull-request create --target-org my-devops-org --work-item-id 0Wx000000000001
352
+ ```
353
+
354
+ _See code: [src/commands/devops/pull-request/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/pull-request/create.ts)_
355
+
356
+ ## `sf devops stage branch add`
357
+
358
+ Add a source code repository branch to a pipeline stage.
359
+
360
+ ```
361
+ USAGE
362
+ $ sf devops stage branch add -o <value> --pipeline-id <value> --stage-id <value> -b <value> [--json] [--flags-dir <value>]
363
+ [--api-version <value>] [--create-vcs-branch]
364
+
365
+ FLAGS
366
+ -b, --branch-name=<value> (required) Name of the repository branch to assign to the stage.
367
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
368
+ configuration variable is already set.
369
+ --api-version=<value> Override the api version used for api requests made by this command
370
+ --create-vcs-branch Create the branch in the remote repository if it doesn't already exist.
371
+ --pipeline-id=<value> (required) ID of the pipeline that contains the stage.
372
+ --stage-id=<value> (required) ID of the pipeline stage to associate the branch with.
373
+
374
+ GLOBAL FLAGS
375
+ --flags-dir=<value> Import flag values from a directory.
376
+ --json Format output as json.
377
+
378
+ DESCRIPTION
379
+ Add a source code repository branch to a pipeline stage.
380
+
381
+ By default, the branch must exist in the repository. Use --create-vcs-branch to create a branch if it doesn't exist.
382
+ Each pipeline stage supports only one branch. Adding a branch replaces any existing branch linked to the pipeline
383
+ stage.
384
+
385
+ EXAMPLES
386
+ Add an existing branch to a stage:
387
+
388
+ $ sf devops stage branch add --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001 \
389
+ --branch-name main
390
+
391
+ Create and add a branch to a pipeline stage:
392
+
393
+ $ sf devops stage branch add --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000002 \
394
+ --branch-name integration --create-vcs-branch
395
+ ```
396
+
397
+ _See code: [src/commands/devops/stage/branch/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/stage/branch/add.ts)_
398
+
399
+ ## `sf devops stage environment add`
400
+
401
+ Add a Salesforce environment to a pipeline stage.
402
+
403
+ ```
404
+ USAGE
405
+ $ sf devops stage environment add -o <value> --pipeline-id <value> --stage-id <value> -e <value> --org-type Production|Sandbox
406
+ [--json] [--flags-dir <value>] [--api-version <value>] [--no-browser]
407
+
408
+ FLAGS
409
+ -e, --environment-name=<value> (required) Name of the environment.
410
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
411
+ configuration variable is already set.
412
+ --api-version=<value> Override the api version used for api requests made by this command
413
+ --no-browser Don't auto-open the browser for OAuth authentication. The redirect URL is printed for
414
+ manual use.
415
+ --org-type=<option> (required) Type of the Salesforce org. Valid values: Production, Sandbox.
416
+ <options: Production|Sandbox>
417
+ --pipeline-id=<value> (required) ID of the pipeline that contains the stage.
418
+ --stage-id=<value> (required) ID of the pipeline stage.
343
419
 
344
- $ sf devops pull-request create --target-org my-devops-org --work-item-id 0Wx000000000001 --title "Fix: Login \
345
- timeout" --body "Resolves the 30s timeout on the login page"
420
+ GLOBAL FLAGS
421
+ --flags-dir=<value> Import flag values from a directory.
422
+ --json Format output as json.
423
+
424
+ DESCRIPTION
425
+ Add a Salesforce environment to a pipeline stage.
426
+
427
+ This command triggers an OAuth flow to authenticate the environment. A browser window opens automatically for you to
428
+ log in.
429
+
430
+ EXAMPLES
431
+ Add a production environment to a stage using its ID:
432
+
433
+ $ sf devops stage environment add --target-org my-devops-org --stage-id 0Xp000000000001 --environment-name \
434
+ Production_Org --org-type Production
346
435
  ```
347
436
 
348
- _See code: [src/commands/devops/pull-request/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/pull-request/create.ts)_
437
+ _See code: [src/commands/devops/stage/environment/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/stage/environment/add.ts)_
349
438
 
350
439
  ## `sf devops work-item create`
351
440
 
@@ -386,7 +475,7 @@ EXAMPLES
386
475
  --description "Implement dark mode toggle in settings page"
387
476
  ```
388
477
 
389
- _See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/work-item/create.ts)_
478
+ _See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/work-item/create.ts)_
390
479
 
391
480
  ## `sf devops work-item list`
392
481
 
@@ -422,16 +511,16 @@ EXAMPLES
422
511
  $ sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001 --json
423
512
  ```
424
513
 
425
- _See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/work-item/list.ts)_
514
+ _See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/work-item/list.ts)_
426
515
 
427
- ## `sf devops work-item status update`
516
+ ## `sf devops work-item update`
428
517
 
429
- Update the status of a work item in DevOps Center.
518
+ Update a work item in DevOps Center.
430
519
 
431
520
  ```
432
521
  USAGE
433
- $ sf devops work-item status update -o <value> --status In Progress|Ready to Promote [--json] [--flags-dir <value>] [--api-version
434
- <value>] [-n <value>] [-w <value>]
522
+ $ sf devops work-item update -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>] [-w <value>]
523
+ [--subject <value>] [--description <value>] [--status In Progress|Ready to Promote]
435
524
 
436
525
  FLAGS
437
526
  -n, --work-item-name=<value> Name of the work item, such as WI-000001.
@@ -439,31 +528,37 @@ FLAGS
439
528
  configuration variable is already set.
440
529
  -w, --work-item-id=<value> ID of the work item.
441
530
  --api-version=<value> Override the api version used for api requests made by this command
442
- --status=<option> (required) Status to set for the work item. Allowed values: "In Progress", "Ready to
443
- Promote".
531
+ --description=<value> New description for the work item.
532
+ --status=<option> New status for the work item. Allowed values: "In Progress", "Ready to Promote".
444
533
  <options: In Progress|Ready to Promote>
534
+ --subject=<value> New subject for the work item.
445
535
 
446
536
  GLOBAL FLAGS
447
537
  --flags-dir=<value> Import flag values from a directory.
448
538
  --json Format output as json.
449
539
 
450
540
  DESCRIPTION
451
- Update the status of a work item in DevOps Center.
541
+ Update a work item in DevOps Center.
452
542
 
453
- Allowed statuses are "In Progress" and "Ready to Promote".
543
+ Update the subject, description, or status of a work item. At least one of --subject, --description, or --status must
544
+ be provided.
454
545
 
455
546
  EXAMPLES
456
- Update a work item status by its name to indicate the work is underway:
547
+ Update the subject of a work item by name:
548
+
549
+ $ sf devops work-item update --target-org my-devops-org --work-item-name WI-000001 --subject "Fix login bug"
550
+
551
+ Update the status of a work item by ID:
457
552
 
458
- $ sf devops work-item status update --target-org my-devops-org --work-item-name WI-000001 --status "In Progress"
553
+ $ sf devops work-item update --target-org my-devops-org --work-item-id 0Wx000000000001 --status "In Progress"
459
554
 
460
- Update a work item status by its ID to indicate the changes are ready for promotion:
555
+ Update multiple fields at once:
461
556
 
462
- $ sf devops work-item status update --target-org my-devops-org --work-item-id 0Wx000000000001 --status "Ready to \
463
- Promote"
557
+ $ sf devops work-item update --target-org my-devops-org --work-item-name WI-000001 --subject "Fix login bug" \
558
+ --description "Users can't log in on mobile" --status "In Progress"
464
559
  ```
465
560
 
466
- _See code: [src/commands/devops/work-item/status/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/devops/work-item/status/update.ts)_
561
+ _See code: [src/commands/devops/work-item/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/devops/work-item/update.ts)_
467
562
 
468
563
  ## `sf project deploy pipeline quick`
469
564
 
@@ -537,7 +632,7 @@ FLAG DESCRIPTIONS
537
632
  "sf project deploy pipeline report".
538
633
  ```
539
634
 
540
- _See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/project/deploy/pipeline/quick.ts)_
635
+ _See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/project/deploy/pipeline/quick.ts)_
541
636
 
542
637
  ## `sf project deploy pipeline report`
543
638
 
@@ -585,7 +680,7 @@ FLAG DESCRIPTIONS
585
680
  your most recent operation was longer than 3 days ago, this flag won't find the job ID.
586
681
  ```
587
682
 
588
- _See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/project/deploy/pipeline/report.ts)_
683
+ _See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/project/deploy/pipeline/report.ts)_
589
684
 
590
685
  ## `sf project deploy pipeline resume`
591
686
 
@@ -652,7 +747,7 @@ FLAG DESCRIPTIONS
652
747
  returns the job ID. To check the status of the operation, run "sf project deploy pipeline report".
653
748
  ```
654
749
 
655
- _See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/project/deploy/pipeline/resume.ts)_
750
+ _See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/project/deploy/pipeline/resume.ts)_
656
751
 
657
752
  ## `sf project deploy pipeline start`
658
753
 
@@ -752,7 +847,7 @@ FLAG DESCRIPTIONS
752
847
  "sf project deploy pipeline report".
753
848
  ```
754
849
 
755
- _See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/project/deploy/pipeline/start.ts)_
850
+ _See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/project/deploy/pipeline/start.ts)_
756
851
 
757
852
  ## `sf project deploy pipeline validate`
758
853
 
@@ -852,7 +947,7 @@ FLAG DESCRIPTIONS
852
947
  "sf project deploy pipeline report".
853
948
  ```
854
949
 
855
- _See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.2.28/src/commands/project/deploy/pipeline/validate.ts)_
950
+ _See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.4.0/src/commands/project/deploy/pipeline/validate.ts)_
856
951
 
857
952
  <!-- commandsstop -->
858
953
 
package/bin/dev.js CHANGED
File without changes
package/bin/run.js CHANGED
File without changes
@@ -52,6 +52,11 @@ export default class DevopsPipelineActivate extends SfCommand {
52
52
  if (stages.length === 0) {
53
53
  this.error(messages.getMessage('error.NoStages', [pipelineId]));
54
54
  }
55
+ const pipelineQueryResult = await connection.query(`SELECT IsActive FROM DevopsPipeline WHERE Id = '${pipelineId}' LIMIT 1`);
56
+ const pipelineRecord = (pipelineQueryResult.records ?? [])[0];
57
+ if (pipelineRecord?.IsActive) {
58
+ this.error(messages.getMessage('error.AlreadyActive', [pipelineId]));
59
+ }
55
60
  let result;
56
61
  try {
57
62
  result = await activatePipeline({ connection, pipelineId });
@@ -1 +1 @@
1
- {"version":3,"file":"activate.js","sourceRoot":"","sources":["../../../../src/commands/devops/pipeline/activate.ts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C,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACtE,IAAI,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;gBAC3E,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC,CAAC;YAC7E,CAAC;YACD,IAAI,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;gBAC3E,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACvE,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;QAED,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;YACjD,IAAI,CAAC,GAAG,CAAC,kBAAkB,UAAU,EAAE,CAAC,CAAC;YACzC,IAAI,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC,CAAC;YACxD,IAAI,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QACnE,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,KAAK,CAAC,gCAAgC,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC,CAAC;QACnE,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC"}
@@ -13,7 +13,8 @@ export default class DevopsPipelineCreate extends SfCommand<CreatePipelineResult
13
13
  'repo-type': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
14
  'create-repo': import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
15
  'repo-owner': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
- 'bitbucket-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ 'bitbucket-workspace': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ 'bitbucket-project-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
18
  description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  };
19
20
  run(): Promise<CreatePipelineResult>;
@@ -15,7 +15,8 @@
15
15
  */
16
16
  import { Messages } from '@salesforce/core';
17
17
  import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
18
- import { createPipeline, detectRepoType } from '../../../utils/createPipeline.js';
18
+ import { createPipeline, detectRepoType, validateGitHubOwner, GitHubOwnerNotFoundError, } from '../../../utils/createPipeline.js';
19
+ import { resolveGitHubToken } from '../../../utils/createPullRequest.js';
19
20
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
20
21
  const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'devops.pipeline.create');
21
22
  const commonErrorMessages = Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
@@ -47,8 +48,11 @@ export default class DevopsPipelineCreate extends SfCommand {
47
48
  'repo-owner': Flags.string({
48
49
  summary: messages.getMessage('flags.repo-owner.summary'),
49
50
  }),
50
- 'bitbucket-project': Flags.string({
51
- summary: messages.getMessage('flags.bitbucket-project.summary'),
51
+ 'bitbucket-workspace': Flags.string({
52
+ summary: messages.getMessage('flags.bitbucket-workspace.summary'),
53
+ }),
54
+ 'bitbucket-project-key': Flags.string({
55
+ summary: messages.getMessage('flags.bitbucket-project-key.summary'),
52
56
  }),
53
57
  description: Flags.string({
54
58
  summary: messages.getMessage('flags.description.summary'),
@@ -60,8 +64,27 @@ export default class DevopsPipelineCreate extends SfCommand {
60
64
  const org = flags['target-org'];
61
65
  const connection = org.getConnection(flags['api-version']);
62
66
  const repoType = this.resolveRepoType(flags['repo-type'], flags['repo'], flags['create-repo']);
63
- if (flags['create-repo'] && !flags['repo-owner']) {
64
- this.error(messages.getMessage('error.RepoOwnerRequired'));
67
+ if (flags['create-repo']) {
68
+ if (repoType === 'bitbucket') {
69
+ if (!flags['bitbucket-workspace']) {
70
+ this.error(messages.getMessage('error.BitbucketWorkspaceRequired'));
71
+ }
72
+ }
73
+ else {
74
+ if (!flags['repo-owner']) {
75
+ this.error(messages.getMessage('error.RepoOwnerRequired'));
76
+ }
77
+ try {
78
+ const token = await resolveGitHubToken();
79
+ await validateGitHubOwner(flags['repo-owner'], token);
80
+ }
81
+ catch (error) {
82
+ if (error instanceof GitHubOwnerNotFoundError) {
83
+ this.error(messages.getMessage('error.RepoOwnerNotFound', [flags['repo-owner']]));
84
+ }
85
+ throw error;
86
+ }
87
+ }
65
88
  }
66
89
  let result;
67
90
  try {
@@ -73,7 +96,8 @@ export default class DevopsPipelineCreate extends SfCommand {
73
96
  repoType,
74
97
  createRepo: flags['create-repo'],
75
98
  repoOwner: flags['repo-owner'],
76
- bitbucketProject: flags['bitbucket-project'],
99
+ bitbucketWorkspace: flags['bitbucket-workspace'],
100
+ bitbucketProjectKey: flags['bitbucket-project-key'],
77
101
  });
78
102
  }
79
103
  catch (error) {
@@ -106,6 +130,12 @@ export default class DevopsPipelineCreate extends SfCommand {
106
130
  }
107
131
  handleApiError(errMsg, repo) {
108
132
  if (errMsg.includes('REPOSITORY_CREATION_FAILED')) {
133
+ if (errMsg.includes('Repository not found') || errMsg.includes('fatal: repository')) {
134
+ this.error(messages.getMessage('error.RepoOwnerNotFound', [repo]));
135
+ }
136
+ if (errMsg.includes('name already exists on this account')) {
137
+ this.error(messages.getMessage('error.RepoNameAlreadyExists', [repo]));
138
+ }
109
139
  this.error(messages.getMessage('error.RepoCreationFailed', [repo, errMsg]));
110
140
  }
111
141
  if (errMsg.includes('REPO_NOT_FOUND_OR_UNAUTHORIZED')) {
@@ -130,7 +160,7 @@ export default class DevopsPipelineCreate extends SfCommand {
130
160
  const orgLabel = username ?? '<org>';
131
161
  const pipelineIdLabel = result.pipelineId ?? '<ID>';
132
162
  this.log(` Add pipeline stages: sf devops pipeline stage add --target-org ${orgLabel} --pipeline-id ${pipelineIdLabel}`);
133
- this.log(` Attach a project: sf devops pipeline attach-project --target-org ${orgLabel} --pipeline-id ${pipelineIdLabel} --project-id <ID>`);
163
+ this.log(` Attach a project: sf devops pipeline project add --target-org ${orgLabel} --pipeline-id ${pipelineIdLabel} --project-id <ID>`);
134
164
  }
135
165
  }
136
166
  //# sourceMappingURL=create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/devops/pipeline/create.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAO,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAwB,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAExG,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,wBAAwB,CAAC,CAAC;AACrG,MAAM,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAEtG,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,SAA+B;IACxE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CA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AAC,GAAG,CACN,qEAAqE,QAAQ,kBAAkB,eAAe,oBAAoB,CACnI,CAAC;IACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { Org } from '@salesforce/core';
2
2
  import { SfCommand } from '@salesforce/sf-plugins-core';
3
- import { AttachProjectResult } from '../../../utils/attachProject.js';
4
- export default class DevopsPipelineAttachProject extends SfCommand<AttachProjectResult> {
3
+ import { AttachProjectResult } from '../../../../utils/attachProject.js';
4
+ export default class DevopsPipelineProjectAdd extends SfCommand<AttachProjectResult> {
5
5
  static readonly summary: string;
6
6
  static readonly description: string;
7
7
  static readonly examples: string[];