Skip to content

Commit

Permalink
Merge pull request #4942 from BitGo/BTC-1351.tweak-commit-hook
Browse files Browse the repository at this point in the history
feat: tweak prepare-commit-msg to accept 'issue' as well
  • Loading branch information
OttoAllmendinger committed Sep 25, 2024
2 parents b61f988 + 49dde3e commit 7431d84
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 7431d84

Please sign in to comment.