Skip to content

Commit

Permalink
feat(root): tweak prepare-commit-msg to accept 'issue' as well
Browse files Browse the repository at this point in the history
Issue: BTC-1351
  • Loading branch information
OttoAllmendinger committed Sep 25, 2024
1 parent 155a0c6 commit 49dde3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prepare-commit-msg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 49dde3e

Please sign in to comment.