Skip to content

Commit b1d35e4

Browse files
chore: force conventional commits (#351)
1 parent 06b2e0e commit b1d35e4

File tree

6 files changed

+1187
-2
lines changed

6 files changed

+1187
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Pull Request checklist:
22

3-
- [ ] Write an explicit title for the Pull Request
3+
- [ ] Write an explicit title for the Pull Request, following [Conventional Commits specification](https://www.conventionalcommits.org)
44
- [ ] Write changes made in the CHANGELOG.md
55
- [ ] Create automatic tests
66
- [ ] No automatic tests failures

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Change Log
22

33
## [Unreleased]
4+
### Changed
5+
- Technical - Introduce conventional commits.
6+
47
### Fixed
58
- Technical - Fix the license type in the `package.json` file.
69
- Wording - Fix a typo in the missing .forestadmin-schema.json file message.

commitlint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: { 'header-max-length': [2, 'always', 100] },
4+
};

husky.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
hooks: {
3+
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
4+
},
5+
};

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020
},
2121
"homepage": "https://github.com/ForestAdmin/forest-rails#readme",
2222
"devDependencies": {
23+
"@commitlint/cli": "8.3.5",
24+
"@commitlint/config-conventional": "8.3.4",
2325
"@forestadmin/devops": "2.0.0",
2426
"dotenv": "8.1.0",
27+
"husky": "4.2.5",
2528
"moment": "^2.20.1",
2629
"semver": "5.3.0",
2730
"simple-git": "1.78.0"

0 commit comments

Comments
 (0)