@salesforce/plugin-devops-center 1.3.0 → 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 (52) hide show
  1. package/README.md +110 -100
  2. package/lib/commands/devops/pipeline/activate.js +5 -0
  3. package/lib/commands/devops/pipeline/activate.js.map +1 -1
  4. package/lib/commands/devops/pipeline/create.d.ts +2 -1
  5. package/lib/commands/devops/pipeline/create.js +37 -7
  6. package/lib/commands/devops/pipeline/create.js.map +1 -1
  7. package/lib/commands/devops/pipeline/{attach-project.d.ts → project/add.d.ts} +2 -2
  8. package/lib/commands/devops/pipeline/{attach-project.js → project/add.js} +5 -5
  9. package/lib/commands/devops/pipeline/project/add.js.map +1 -0
  10. package/lib/commands/devops/pull-request/create.d.ts +0 -2
  11. package/lib/commands/devops/pull-request/create.js +8 -40
  12. package/lib/commands/devops/pull-request/create.js.map +1 -1
  13. package/lib/commands/devops/stage/{add-branch.d.ts → branch/add.d.ts} +2 -2
  14. package/lib/commands/devops/stage/{add-branch.js → branch/add.js} +6 -6
  15. package/lib/commands/devops/stage/branch/add.js.map +1 -0
  16. package/lib/commands/devops/stage/{add-environment.d.ts → environment/add.d.ts} +2 -2
  17. package/lib/commands/devops/stage/{add-environment.js → environment/add.js} +11 -6
  18. package/lib/commands/devops/stage/environment/add.js.map +1 -0
  19. package/lib/commands/devops/work-item/{status/update.d.ts → update.d.ts} +6 -4
  20. package/lib/commands/devops/work-item/{status/update.js → update.js} +30 -9
  21. package/lib/commands/devops/work-item/update.js.map +1 -0
  22. package/lib/utils/createPipeline.d.ts +14 -1
  23. package/lib/utils/createPipeline.js +52 -6
  24. package/lib/utils/createPipeline.js.map +1 -1
  25. package/lib/utils/createProject.js +1 -0
  26. package/lib/utils/createProject.js.map +1 -1
  27. package/lib/utils/createPullRequest.d.ts +7 -19
  28. package/lib/utils/createPullRequest.js +49 -121
  29. package/lib/utils/createPullRequest.js.map +1 -1
  30. package/lib/utils/{updateWorkItemStatus.d.ts → updateWorkItem.d.ts} +12 -14
  31. package/lib/utils/{updateWorkItemStatus.js → updateWorkItem.js} +28 -26
  32. package/lib/utils/updateWorkItem.js.map +1 -0
  33. package/messages/devops.pipeline.create.md +26 -6
  34. package/messages/devops.pull-request.create.md +6 -30
  35. package/messages/{devops.stage.add-environment.md → devops.stage.environment.add.md} +4 -0
  36. package/messages/devops.work-item.update.md +45 -0
  37. package/npm-shrinkwrap.json +2 -2
  38. package/oclif.manifest.json +276 -266
  39. package/package.json +3 -3
  40. package/schemas/devops-pull__request-create.json +0 -3
  41. package/schemas/{devops-work__item-status-update.json → devops-work__item-update.json} +8 -2
  42. package/lib/commands/devops/pipeline/attach-project.js.map +0 -1
  43. package/lib/commands/devops/stage/add-branch.js.map +0 -1
  44. package/lib/commands/devops/stage/add-environment.js.map +0 -1
  45. package/lib/commands/devops/work-item/status/update.js.map +0 -1
  46. package/lib/utils/updateWorkItemStatus.js.map +0 -1
  47. package/messages/devops.work-item.status.update.md +0 -29
  48. /package/messages/{devops.pipeline.attach-project.md → devops.pipeline.project.add.md} +0 -0
  49. /package/messages/{devops.stage.add-branch.md → devops.stage.branch.add.md} +0 -0
  50. /package/schemas/{devops-pipeline-attach__project.json → devops-pipeline-project-add.json} +0 -0
  51. /package/schemas/{devops-stage-add__branch.json → devops-stage-branch-add.json} +0 -0
  52. /package/schemas/{devops-stage-add__environment.json → devops-stage-environment-add.json} +0 -0
package/README.md CHANGED
@@ -57,17 +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 add-branch`](#sf-devops-stage-add-branch)
67
- - [`sf devops stage add-environment`](#sf-devops-stage-add-environment)
66
+ - [`sf devops stage branch add`](#sf-devops-stage-branch-add)
67
+ - [`sf devops stage environment add`](#sf-devops-stage-environment-add)
68
68
  - [`sf devops work-item create`](#sf-devops-work-item-create)
69
69
  - [`sf devops work-item list`](#sf-devops-work-item-list)
70
- - [`sf devops work-item status update`](#sf-devops-work-item-status-update)
70
+ - [`sf devops work-item update`](#sf-devops-work-item-update)
71
71
  - [`sf project deploy pipeline quick`](#sf-project-deploy-pipeline-quick)
72
72
  - [`sf project deploy pipeline report`](#sf-project-deploy-pipeline-report)
73
73
  - [`sf project deploy pipeline resume`](#sf-project-deploy-pipeline-resume)
@@ -104,95 +104,103 @@ EXAMPLES
104
104
  $ sf devops pipeline activate --target-org my-devops-org --pipeline-id 0XB000000000001
105
105
  ```
106
106
 
107
- _See code: [src/commands/devops/pipeline/activate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
108
108
 
109
- ## `sf devops pipeline attach-project`
109
+ ## `sf devops pipeline create`
110
110
 
111
- Attach a DevOps Center project to a pipeline.
111
+ Create a DevOps Center pipeline.
112
112
 
113
113
  ```
114
114
  USAGE
115
- $ sf devops pipeline attach-project -o <value> --pipeline-id <value> --project-id <value> [--json] [--flags-dir <value>]
116
- [--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>]
117
118
 
118
119
  FLAGS
119
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
120
- configuration variable is already set.
121
- --api-version=<value> Override the api version used for api requests made by this command
122
- --pipeline-id=<value> (required) ID of the pipeline.
123
- --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>
124
136
 
125
137
  GLOBAL FLAGS
126
138
  --flags-dir=<value> Import flag values from a directory.
127
139
  --json Format output as json.
128
140
 
129
141
  DESCRIPTION
130
- Attach a DevOps Center project to a pipeline.
142
+ Create a DevOps Center pipeline.
131
143
 
132
- 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.
133
146
 
134
147
  EXAMPLES
135
- 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.
136
149
 
137
- $ sf devops pipeline attach-project --target-org my-devops-org --pipeline-id 0XB000000000001 --project-id \
138
- 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"
139
167
  ```
140
168
 
141
- _See code: [src/commands/devops/pipeline/attach-project.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
142
170
 
143
- ## `sf devops pipeline create`
171
+ ## `sf devops pipeline project add`
144
172
 
145
- Create a DevOps Center pipeline.
173
+ Attach a DevOps Center project to a pipeline.
146
174
 
147
175
  ```
148
176
  USAGE
149
- $ sf devops pipeline create -o <value> -n <value> -r <value> [--json] [--flags-dir <value>] [--api-version <value>]
150
- [--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>]
151
179
 
152
180
  FLAGS
153
- -d, --description=<value> Description of the pipeline.
154
- -n, --name=<value> (required) Name of the pipeline.
155
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
156
- configuration variable is already set.
157
- -r, --repo=<value> (required) URL of an existing repository or the name of a repository to create.
158
- --api-version=<value> Override the api version used for api requests made by this command
159
- --bitbucket-project=<value> Bitbucket project key for the repository. Used when creating a Bitbucket repository
160
- with '--create-repo'.
161
- --create-repo Create a repository if it doesn't exist.
162
- --repo-owner=<value> Owner (organization or user) of the repository. Required when creating a repository
163
- using '--create-repo'.
164
- --repo-type=<option> Type of the source code repository. Required when creating a repository using
165
- '--create-repo'.
166
- <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.
167
186
 
168
187
  GLOBAL FLAGS
169
188
  --flags-dir=<value> Import flag values from a directory.
170
189
  --json Format output as json.
171
190
 
172
191
  DESCRIPTION
173
- Create a DevOps Center pipeline.
192
+ Attach a DevOps Center project to a pipeline.
174
193
 
175
- Provide the URL of an existing repository, or use `--create-repo` with a repository name to create one. After you
176
- create the pipeline, add stages, and activate the pipeline.
194
+ You can attach a project to only one pipeline.
177
195
 
178
196
  EXAMPLES
179
- Create a pipeline and associate it with an existing GitHub repository.
180
-
181
- $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
182
- https://github.com/myorg/myrepo
183
-
184
- Create a pipeline and associate it with a new GitHub repository.
185
-
186
- $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo my-new-repo --repo-type \
187
- github --repo-owner myorg --create-repo
188
-
189
- 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.
190
198
 
191
- $ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
192
- 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
193
201
  ```
194
202
 
195
- _See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
196
204
 
197
205
  ## `sf devops pipeline stage add`
198
206
 
@@ -233,7 +241,7 @@ EXAMPLES
233
241
  --next-stage-id 0Xc000000000003
234
242
  ```
235
243
 
236
- _See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
237
245
 
238
246
  ## `sf devops project create`
239
247
 
@@ -270,7 +278,7 @@ EXAMPLES
270
278
  update"
271
279
  ```
272
280
 
273
- _See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
274
282
 
275
283
  ## `sf devops project list`
276
284
 
@@ -305,7 +313,7 @@ EXAMPLES
305
313
  $ sf devops project list --target-org devops-center@example.com
306
314
  ```
307
315
 
308
- _See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
309
317
 
310
318
  ## `sf devops pull-request create`
311
319
 
@@ -313,8 +321,8 @@ Create a pull request for a work item branch.
313
321
 
314
322
  ```
315
323
  USAGE
316
- $ sf devops pull-request create -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>] [-w <value>]
317
- [--title <value>] [--body <value>]
324
+ $ sf devops pull-request create -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>] [-w
325
+ <value>]
318
326
 
319
327
  FLAGS
320
328
  -n, --work-item-name=<value> Name of the work item, such as WI-000001.
@@ -322,8 +330,6 @@ FLAGS
322
330
  configuration variable is already set.
323
331
  -w, --work-item-id=<value> ID of the work item.
324
332
  --api-version=<value> Override the api version used for api requests made by this command
325
- --body=<value> Description of the pull request.
326
- --title=<value> Title of the pull request.
327
333
 
328
334
  GLOBAL FLAGS
329
335
  --flags-dir=<value> Import flag values from a directory.
@@ -332,30 +338,28 @@ GLOBAL FLAGS
332
338
  DESCRIPTION
333
339
  Create a pull request for a work item branch.
334
340
 
335
- The pull request title defaults to the work item subject. The work item must have an associated branch and repository.
336
- Requires VCS authentication: set GITHUB_TOKEN (or use `gh auth login`) for GitHub, or set BITBUCKET_TOKEN for
337
- 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.
338
343
 
339
344
  EXAMPLES
340
- Create a pull request for a work item using the default title.
345
+ Create a pull request for a work item.
341
346
 
342
347
  $ sf devops pull-request create --target-org my-devops-org --work-item-name WI-000001
343
348
 
344
- Create a pull request with a custom title and description.
349
+ Create a pull request using the work item ID.
345
350
 
346
- $ sf devops pull-request create --target-org my-devops-org --work-item-id 0Wx000000000001 --title "Fix: Login \
347
- timeout" --body "Resolves the 30s timeout on the login page"
351
+ $ sf devops pull-request create --target-org my-devops-org --work-item-id 0Wx000000000001
348
352
  ```
349
353
 
350
- _See code: [src/commands/devops/pull-request/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/pull-request/create.ts)_
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)_
351
355
 
352
- ## `sf devops stage add-branch`
356
+ ## `sf devops stage branch add`
353
357
 
354
358
  Add a source code repository branch to a pipeline stage.
355
359
 
356
360
  ```
357
361
  USAGE
358
- $ sf devops stage add-branch -o <value> --pipeline-id <value> --stage-id <value> -b <value> [--json] [--flags-dir <value>]
362
+ $ sf devops stage branch add -o <value> --pipeline-id <value> --stage-id <value> -b <value> [--json] [--flags-dir <value>]
359
363
  [--api-version <value>] [--create-vcs-branch]
360
364
 
361
365
  FLAGS
@@ -381,24 +385,24 @@ DESCRIPTION
381
385
  EXAMPLES
382
386
  Add an existing branch to a stage:
383
387
 
384
- $ sf devops stage add-branch --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001 \
388
+ $ sf devops stage branch add --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001 \
385
389
  --branch-name main
386
390
 
387
391
  Create and add a branch to a pipeline stage:
388
392
 
389
- $ sf devops stage add-branch --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000002 \
393
+ $ sf devops stage branch add --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000002 \
390
394
  --branch-name integration --create-vcs-branch
391
395
  ```
392
396
 
393
- _See code: [src/commands/devops/stage/add-branch.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/stage/add-branch.ts)_
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)_
394
398
 
395
- ## `sf devops stage add-environment`
399
+ ## `sf devops stage environment add`
396
400
 
397
401
  Add a Salesforce environment to a pipeline stage.
398
402
 
399
403
  ```
400
404
  USAGE
401
- $ sf devops stage add-environment -o <value> --pipeline-id <value> --stage-id <value> -e <value> --org-type Production|Sandbox
405
+ $ sf devops stage environment add -o <value> --pipeline-id <value> --stage-id <value> -e <value> --org-type Production|Sandbox
402
406
  [--json] [--flags-dir <value>] [--api-version <value>] [--no-browser]
403
407
 
404
408
  FLAGS
@@ -426,11 +430,11 @@ DESCRIPTION
426
430
  EXAMPLES
427
431
  Add a production environment to a stage using its ID:
428
432
 
429
- $ sf devops stage add-environment --target-org my-devops-org --stage-id 0Xp000000000001 --environment-name \
433
+ $ sf devops stage environment add --target-org my-devops-org --stage-id 0Xp000000000001 --environment-name \
430
434
  Production_Org --org-type Production
431
435
  ```
432
436
 
433
- _See code: [src/commands/devops/stage/add-environment.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/stage/add-environment.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)_
434
438
 
435
439
  ## `sf devops work-item create`
436
440
 
@@ -471,7 +475,7 @@ EXAMPLES
471
475
  --description "Implement dark mode toggle in settings page"
472
476
  ```
473
477
 
474
- _See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
475
479
 
476
480
  ## `sf devops work-item list`
477
481
 
@@ -507,16 +511,16 @@ EXAMPLES
507
511
  $ sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001 --json
508
512
  ```
509
513
 
510
- _See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
511
515
 
512
- ## `sf devops work-item status update`
516
+ ## `sf devops work-item update`
513
517
 
514
- Update the status of a work item in DevOps Center.
518
+ Update a work item in DevOps Center.
515
519
 
516
520
  ```
517
521
  USAGE
518
- $ sf devops work-item status update -o <value> --status In Progress|Ready to Promote [--json] [--flags-dir <value>] [--api-version
519
- <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]
520
524
 
521
525
  FLAGS
522
526
  -n, --work-item-name=<value> Name of the work item, such as WI-000001.
@@ -524,31 +528,37 @@ FLAGS
524
528
  configuration variable is already set.
525
529
  -w, --work-item-id=<value> ID of the work item.
526
530
  --api-version=<value> Override the api version used for api requests made by this command
527
- --status=<option> (required) Status to set for the work item. Allowed values: "In Progress", "Ready to
528
- 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".
529
533
  <options: In Progress|Ready to Promote>
534
+ --subject=<value> New subject for the work item.
530
535
 
531
536
  GLOBAL FLAGS
532
537
  --flags-dir=<value> Import flag values from a directory.
533
538
  --json Format output as json.
534
539
 
535
540
  DESCRIPTION
536
- Update the status of a work item in DevOps Center.
541
+ Update a work item in DevOps Center.
537
542
 
538
- 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.
539
545
 
540
546
  EXAMPLES
541
- 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:
542
552
 
543
- $ 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"
544
554
 
545
- Update a work item status by its ID to indicate the changes are ready for promotion:
555
+ Update multiple fields at once:
546
556
 
547
- $ sf devops work-item status update --target-org my-devops-org --work-item-id 0Wx000000000001 --status "Ready to \
548
- 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"
549
559
  ```
550
560
 
551
- _See code: [src/commands/devops/work-item/status/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
552
562
 
553
563
  ## `sf project deploy pipeline quick`
554
564
 
@@ -622,7 +632,7 @@ FLAG DESCRIPTIONS
622
632
  "sf project deploy pipeline report".
623
633
  ```
624
634
 
625
- _See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
626
636
 
627
637
  ## `sf project deploy pipeline report`
628
638
 
@@ -670,7 +680,7 @@ FLAG DESCRIPTIONS
670
680
  your most recent operation was longer than 3 days ago, this flag won't find the job ID.
671
681
  ```
672
682
 
673
- _See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
674
684
 
675
685
  ## `sf project deploy pipeline resume`
676
686
 
@@ -737,7 +747,7 @@ FLAG DESCRIPTIONS
737
747
  returns the job ID. To check the status of the operation, run "sf project deploy pipeline report".
738
748
  ```
739
749
 
740
- _See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
741
751
 
742
752
  ## `sf project deploy pipeline start`
743
753
 
@@ -837,7 +847,7 @@ FLAG DESCRIPTIONS
837
847
  "sf project deploy pipeline report".
838
848
  ```
839
849
 
840
- _See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
841
851
 
842
852
  ## `sf project deploy pipeline validate`
843
853
 
@@ -937,7 +947,7 @@ FLAG DESCRIPTIONS
937
947
  "sf project deploy pipeline report".
938
948
  ```
939
949
 
940
- _See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/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)_
941
951
 
942
952
  <!-- commandsstop -->
943
953
 
@@ -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"],"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,gBAAgB,EAA0B,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,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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,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,KAAK,CAAC,WAAW,EAAE;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE;QACpC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;YACjB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;YAClD,IAAI,EAAE,GAAG;YACT,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;YACjB,OAAO,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C;IACH,CAAC;IAEO,kBAAkB,CAAC,MAA4B,EAAE,QAAgB,EAAE,QAA4B;QACrG,IAAI,MAAM,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC;YAC/B,IAAI,CAAC,GAAG,CAAC,uBAAuB,QAAQ,KAAK,MAAM,CAAC,UAAU,CAAC,QAAQ,GAAG,CAAC,CAAC;QAC9E,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,kCAAkC,MAAM,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;QAChE,IAAI,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,UAAU,IAAI,EAAE,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,UAAU,EAAE,OAAO,IAAI,EAAE,KAAK,MAAM,CAAC,UAAU,EAAE,QAAQ,IAAI,EAAE,GAAG,CAAC,CAAC;QACtG,IAAI,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,MAAM,IAAI,UAAU,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC1B,MAAM,QAAQ,GAAG,QAAQ,IAAI,OAAO,CAAC;QACrC,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC;QACpD,IAAI,CAAC,GAAG,CACN,sEAAsE,QAAQ,kBAAkB,eAAe,EAAE,CAClH,CAAC;QACF,IAAI,CAAC,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[];
@@ -15,11 +15,11 @@
15
15
  */
16
16
  import { Messages } from '@salesforce/core';
17
17
  import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
18
- import { attachProject, findExistingAttachment } from '../../../utils/attachProject.js';
18
+ import { attachProject, findExistingAttachment } from '../../../../utils/attachProject.js';
19
19
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
20
- const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'devops.pipeline.attach-project');
20
+ const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'devops.pipeline.project.add');
21
21
  const commonErrorMessages = Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
22
- export default class DevopsPipelineAttachProject extends SfCommand {
22
+ export default class DevopsPipelineProjectAdd extends SfCommand {
23
23
  static summary = messages.getMessage('summary');
24
24
  static description = messages.getMessage('description');
25
25
  static examples = messages.getMessages('examples');
@@ -38,7 +38,7 @@ export default class DevopsPipelineAttachProject extends SfCommand {
38
38
  }),
39
39
  };
40
40
  async run() {
41
- const { flags } = await this.parse(DevopsPipelineAttachProject);
41
+ const { flags } = await this.parse(DevopsPipelineProjectAdd);
42
42
  const org = flags['target-org'];
43
43
  const connection = org.getConnection(flags['api-version']);
44
44
  const projectId = flags['project-id'];
@@ -79,4 +79,4 @@ export default class DevopsPipelineAttachProject extends SfCommand {
79
79
  return result;
80
80
  }
81
81
  }
82
- //# sourceMappingURL=attach-project.js.map
82
+ //# sourceMappingURL=add.js.map