Skip to content

Commit 9d20ef7

Browse files
committed
Add test link to completed deployment message
1 parent 54b73d2 commit 9d20ef7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/cli-v3/src/commands/deploy.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,13 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
441441
`${authorization.dashboardUrl}/projects/v3/${resolvedConfig.config.project}/deployments/${finishedDeployment.shortCode}`
442442
);
443443

444+
const testLink = cliLink(
445+
"Test tasks",
446+
`${authorization.dashboardUrl}/projects/v3/${resolvedConfig.config.project}/test?environment=${
447+
options.env === "prod" ? "prod" : "stg"
448+
}`
449+
);
450+
444451
switch (finishedDeployment.status) {
445452
case "DEPLOYED": {
446453
if (warnings.warnings.length > 0) {
@@ -461,7 +468,7 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
461468
outro(
462469
`Version ${version} deployed with ${taskCount} detected task${
463470
taskCount === 1 ? "" : "s"
464-
} ${deploymentLink}`
471+
} | ${deploymentLink} | ${testLink}`
465472
);
466473
}
467474

0 commit comments

Comments
 (0)