]> source.dussan.org Git - jquery.git/commitdiff
Build: use commitplease via husky, prohibit #NNNN github-style tickets
authorAlexander Lisianoi <all3fox@gmail.com>
Thu, 16 Jun 2016 09:42:26 +0000 (11:42 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 25 Jul 2016 16:27:36 +0000 (18:27 +0200)
Closes gh-3176

package.json

index c5cdc6a3c42edd00aeb16940c4b81204d1a9cf71..d05c2485a7b221547f2d9d61bccf6507ea8d3ebb 100644 (file)
@@ -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",
     "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? [^#])"
   }
 }