From 49dde3ea808a0b3702c8690783036020e0d5d104 Mon Sep 17 00:00:00 2001 From: Otto Allmendinger Date: Wed, 25 Sep 2024 11:44:38 +0200 Subject: [PATCH] feat(root): tweak prepare-commit-msg to accept 'issue' as well Issue: BTC-1351 --- scripts/prepare-commit-msg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prepare-commit-msg.js b/scripts/prepare-commit-msg.js index c30f397d73..0972fc0131 100755 --- a/scripts/prepare-commit-msg.js +++ b/scripts/prepare-commit-msg.js @@ -8,7 +8,7 @@ const exec = promisify(childProcess.exec); // ex WP-1234 const branchRegex = /([A-Z]+-)(\d+)/; // ex TICKET: WP-1234 -const commitRegex = /ticket:\s(\S+)/gim; +const commitRegex = /(ticket|issue):\s(\S+)/gim; async function main() { const commitMsgFilepath = process.argv[2];