From: Alexander Lisianoi Date: Thu, 16 Jun 2016 09:42:26 +0000 (+0200) Subject: Build: use commitplease via husky, prohibit #NNNN github-style tickets X-Git-Tag: 3.1.1~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=04a2e036d0de3a0b382af3379c99d23e9ac7c390;p=jquery.git Build: use commitplease via husky, prohibit #NNNN github-style tickets Closes gh-3176 --- diff --git a/package.json b/package.json index c5cdc6a3c..d05c2485a 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "dependencies": {}, "devDependencies": { "babel-preset-es2015": "6.6.0", - "commitplease": "2.3.1", + "commitplease": "2.6.1", "core-js": "2.2.2", "cross-spawn": "2.2.3", "eslint-config-jquery": "1.0.0", @@ -61,9 +61,11 @@ "build": "npm install && grunt", "start": "grunt watch", "test": "grunt && grunt test", - "precommit": "grunt precommit_lint" + "precommit": "grunt precommit_lint", + "commitmsg": "node node_modules/commitplease" }, "commitplease": { + "nohook": true, "components": [ "Docs", "Tests", @@ -88,6 +90,8 @@ "Serialize", "Traversing", "Wrap" - ] + ], + "markerPattern": "^((clos|fix|resolv)(e[sd]|ing))|(refs?)", + "ticketPattern": "^((Closes|Fixes) ([a-zA-Z]{2,}-)[0-9]+)|(Refs? [^#])" } }