Skip to content

Commit

Permalink
Minor copy change in rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshyDev committed Jun 21, 2024
1 parent 91c7ce2 commit e4a79b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/wrangler/src/__tests__/rollback.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe("rollback", () => {
mockPostDeployment();

mockPrompt({
text: "Please provide a message for this rollback (120 characters max, optional)?",
text: "Please provide an optional message for this rollback (120 characters max)?",
result: "Test rollback",
});

Expand Down Expand Up @@ -168,7 +168,7 @@ describe("rollback", () => {
mockPostDeployment(true);

mockPrompt({
text: "Please provide a message for this rollback (120 characters max, optional)?",
text: "Please provide an optional message for this rollback (120 characters max)?",
result: "Test rollback",
});

Expand All @@ -180,7 +180,7 @@ describe("rollback", () => {
// We will have an additional confirmation
mockConfirm({
text:
"The following secrets have changed since the target version was deployed. Please confirm you wish to continue with the rollback" +
`The following secrets have changed since version rollback-version was deployed. Please confirm you wish to continue with the rollback` +
"\n * SECRET\n * SECRET_TWO",
result: true,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/rollback/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export async function versionsRollbackHandler(args: VersionsRollbackArgs) {
.split(", ");

const secretConfirmation = await confirm(
"The following secrets have changed since the target version was deployed. " +
`The following secrets have changed since version ${versionId} was deployed. ` +
`Please confirm you wish to continue with the rollback\n` +
changedSecrets.map((secret) => ` * ${secret}`).join("\n")
);
Expand Down

0 comments on commit e4a79b5

Please sign in to comment.