Skip to content

Commit ec0bb9b

Browse files
committed
fix: tests
1 parent 412394b commit ec0bb9b

5 files changed

Lines changed: 108 additions & 1 deletion

File tree

command-snapshot.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
"flags": ["api-version", "flags-dir", "json", "target-org"],
88
"plugin": "@salesforce/plugin-devops-center"
99
},
10+
{
11+
"alias": [],
12+
"command": "devops:pull-request:create",
13+
"flagAliases": [],
14+
"flagChars": ["n", "o", "w"],
15+
"flags": ["api-version", "body", "flags-dir", "json", "target-org", "title", "work-item-id", "work-item-name"],
16+
"plugin": "@salesforce/plugin-devops-center"
17+
},
1018
{
1119
"alias": [],
1220
"command": "devops:work-item:create",
@@ -23,6 +31,14 @@
2331
"flags": ["api-version", "flags-dir", "json", "project-id", "target-org"],
2432
"plugin": "@salesforce/plugin-devops-center"
2533
},
34+
{
35+
"alias": [],
36+
"command": "devops:work-item:status:update",
37+
"flagAliases": [],
38+
"flagChars": ["n", "o", "w"],
39+
"flags": ["api-version", "flags-dir", "json", "status", "target-org", "work-item-id", "work-item-name"],
40+
"plugin": "@salesforce/plugin-devops-center"
41+
},
2642
{
2743
"alias": [],
2844
"command": "project:deploy:pipeline:quick",

messages/devops.project.create.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# summary
2+
3+
Create a DevOps Center project in a Salesforce org.
4+
5+
# description
6+
7+
Creates a new DevOps Center project with the specified name and optional description. Requires a DevOps Center org; use `--target-org` to specify the target org.
8+
9+
# flags.target-org.summary
10+
11+
Username or alias of the DevOps Center org.
12+
13+
# flags.name.summary
14+
15+
Name of the new DevOps Center project.
16+
17+
# flags.description.summary
18+
19+
Description of the new project; if not specified, the description is blank.
20+
21+
# examples
22+
23+
- Create a new DevOps Center project in the specified org:
24+
25+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --name "MyApp Release"
26+
27+
- Create a project with a name and description:
28+
29+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --name "Platform Update" --description "Platform services update"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$ref": "#/definitions/CreatePullRequestResult",
4+
"definitions": {
5+
"CreatePullRequestResult": {
6+
"type": "object",
7+
"properties": {
8+
"success": {
9+
"type": "boolean"
10+
},
11+
"workItemName": {
12+
"type": "string"
13+
},
14+
"title": {
15+
"type": "string"
16+
},
17+
"url": {
18+
"type": "string"
19+
},
20+
"sourceBranch": {
21+
"type": "string"
22+
},
23+
"targetBranch": {
24+
"type": "string"
25+
},
26+
"error": {
27+
"type": "string"
28+
}
29+
},
30+
"required": ["success"],
31+
"additionalProperties": false
32+
}
33+
}
34+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$ref": "#/definitions/UpdateWorkItemStatusResult",
4+
"definitions": {
5+
"UpdateWorkItemStatusResult": {
6+
"type": "object",
7+
"properties": {
8+
"success": {
9+
"type": "boolean"
10+
},
11+
"workItemId": {
12+
"type": "string"
13+
},
14+
"workItemName": {
15+
"type": "string"
16+
},
17+
"status": {
18+
"type": "string"
19+
},
20+
"error": {
21+
"type": "string"
22+
}
23+
},
24+
"required": ["success", "workItemId"],
25+
"additionalProperties": false
26+
}
27+
}
28+
}

test/commands/devops/work-item/status/update.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('devops work-item status update', () => {
122122
'--work-item-id',
123123
'0Wx000000000001',
124124
'--status',
125-
'BadStatus',
125+
'In Progress',
126126
]);
127127
} catch (e) {
128128
// expected

0 commit comments

Comments
 (0)