From e365160d439ddc2df69069907f02c73c49b6b91e Mon Sep 17 00:00:00 2001 From: jdawg093 <49189518+jdawg093@users.noreply.github.com> Date: Fri, 21 Mar 2025 11:08:43 +1100 Subject: [PATCH 1/2] OB-2335 # Allow ticket prefix to be lowercase --- src/startUpdateDependents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/startUpdateDependents.ts b/src/startUpdateDependents.ts index d4a188a..2c12859 100644 --- a/src/startUpdateDependents.ts +++ b/src/startUpdateDependents.ts @@ -34,7 +34,7 @@ export default async function startUpdateDependents({ cwd }: { cwd: string }) { message: `Ticket to associate with pull requests? (e.g. ON-4323, OB-4323)`, required: true, validate: (input) => { - if (!/^(ON-|OB-)\d+$/.test(input)) { + if (!/^(ON-|OB-)\d+$/i.test(input)) { return 'Ticket must be "ON-" or "OB-" followed by a number' } return true From 7f8c88cb13ba054b960877f839f6afcaee359a2d Mon Sep 17 00:00:00 2001 From: jdawg093 <49189518+jdawg093@users.noreply.github.com> Date: Fri, 21 Mar 2025 12:02:40 +1100 Subject: [PATCH 2/2] OB-2335 # Return ticket result as uppercase --- src/startUpdateDependents.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/startUpdateDependents.ts b/src/startUpdateDependents.ts index 2c12859..76ddbc3 100644 --- a/src/startUpdateDependents.ts +++ b/src/startUpdateDependents.ts @@ -39,6 +39,7 @@ export default async function startUpdateDependents({ cwd }: { cwd: string }) { } return true }, + result: (input) => input.toUpperCase(), }) const { isUpdatingTypes } = await enquirer.prompt<{