Skip to content

Commit

Permalink
Perf: modified releaseRules for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Sep 3, 2017
1 parent 15d1454 commit 3a775c0
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 1 deletion.
63 changes: 63 additions & 0 deletions .sgcrc
@@ -0,0 +1,63 @@
{
"scope": false,
"body": true,
"emoji": false,
"lowercaseTypes": false,
"initial-commit": {
"isEnabled": true,
"emoji": ":tada:",
"message": "Initial commit"
},
"types": [
{
"emoji": ":wrench:",
"type": "Chore:",
"description": "Changes that affect the build system or external dependencies and moving files"
},
{
"emoji": ":construction_worker:",
"type": "CI:",
"description": "Changes to our CI configuration files and scripts"
},
{
"emoji": ":memo:",
"type": "Docs:",
"description": "Documentation only changes"
},
{
"emoji": ":sparkles:",
"type": "Feat:",
"description": "New feature"
},
{
"emoji": ":bug:",
"type": "Fix:",
"description": "Bug fix"
},
{
"emoji": ":zapr:",
"type": "Perf:",
"description": "Code change that improves performance"
},
{
"emoji": ":hammer:",
"type": "Refactor:",
"description": "Code change that neither fixes a bug nor adds a feature"
},
{
"emoji": ":art:",
"type": "Style:",
"description": "Changes that do not affect the meaning of the code"
},
{
"emoji": ":white_check_mark:",
"type": "Test:",
"description": "Adding missing tests or correcting existing tests"
}
],
"rules": {
"max-char": 72,
"min-char": 10,
"end-with-dot": false
}
}
8 changes: 7 additions & 1 deletion package.json
Expand Up @@ -35,7 +35,13 @@
"release": {
"analyzeCommits": {
"path": "sr-commit-analyzer",
"preset": "eslint"
"preset": "eslint",
"releaseRules": [
{"type": "Feat", "release": "minor"},
{"type": "Refactor", "release": "patch"},
{"tag": "Fix", "release": "patch"},
{"type": "Perf", "release": "patch"}
]
},
"generateNotes": {
"path": "sr-release-notes-generator",
Expand Down

0 comments on commit 3a775c0

Please sign in to comment.