diff --git a/CHANGELOG.md b/CHANGELOG.md index 76489e5..7512694 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Support for Linear Ticket prefix (OB) +- Support for Linear Ticket prefix (AP | MS) ## [3.3.0] - 2024-11-20 diff --git a/src/startUpdateDependents.ts b/src/startUpdateDependents.ts index 76ddbc3..cb36234 100644 --- a/src/startUpdateDependents.ts +++ b/src/startUpdateDependents.ts @@ -31,11 +31,11 @@ export default async function startUpdateDependents({ cwd }: { cwd: string }) { }>({ type: 'input', name: 'ticket', - message: `Ticket to associate with pull requests? (e.g. ON-4323, OB-4323)`, + message: `Ticket to associate with pull requests? (e.g. ON-4323, AP-4323, MS-4323)`, required: true, validate: (input) => { - if (!/^(ON-|OB-)\d+$/i.test(input)) { - return 'Ticket must be "ON-" or "OB-" followed by a number' + if (!/^[a-z]{1,3}-\d+$/i.test(input)) { + return 'Ticket must be 1-3 alpha characters, then a hyphen followed by a number' } return true },