Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
fix(changlog): change type of content update
Browse files Browse the repository at this point in the history
because chore will not add into release notes, so i change chore to be feature
and also update analytic version release to support this conversion.
  • Loading branch information
Kamontat Chantrachirathumrong committed Dec 9, 2018
1 parent b6bf9c2 commit 54fa973
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 47 deletions.
53 changes: 16 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@
"yargs": "12.0.5"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
"extends": ["@commitlint/config-conventional"]
},
"husky": {
"hooks": {
Expand All @@ -105,6 +103,16 @@
"scope": "core",
"release": "major"
},
{
"type": "feat",
"scope": "content",
"release": "patch"
},
{
"type": "feat",
"scope": "image",
"release": "patch"
},
{
"type": "perf",
"release": "minor"
Expand All @@ -131,25 +139,11 @@
"type": "chore",
"scope": "deps",
"release": "patch"
},
{
"type": "chore",
"scope": "content",
"release": "patch"
},
{
"type": "chore",
"scope": "image",
"release": "patch"
}
],
"parserOpts": {
"mergePattern": "/[mM]erge (.*) #(\\d+) from (.*)$/",
"mergeCorrespondence": [
"plain",
"id",
"source"
]
"mergeCorrespondence": ["plain", "id", "source"]
}
}
],
Expand All @@ -158,11 +152,7 @@
{
"parserOpts": {
"mergePattern": "/[mM]erge (.*) #(\\d+) from (.*)$/",
"mergeCorrespondence": [
"plain",
"id",
"source"
]
"mergeCorrespondence": ["plain", "id", "source"]
}
}
],
Expand All @@ -181,26 +171,15 @@
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json",
"yarn.lock"
],
"assets": ["CHANGELOG.md", "package.json", "yarn.lock"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"labels": [
"Bot: Semantic Release",
"Type: Bug",
"Status: In Review"
],
"releasedLabels": [
"Bot: Semantic Release",
"Status: Production"
]
"labels": ["Bot: Semantic Release", "Type: Bug", "Status: In Review"],
"releasedLabels": ["Bot: Semantic Release", "Status: Production"]
}
]
],
Expand Down
10 changes: 5 additions & 5 deletions static/cms/net/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ backend:
name: git-gateway
branch: master
commit_messages:
create: "chore(content): create {{collection}} “{{slug}}” [bot]"
update: "chore(content): update {{collection}} “{{slug}}” [bot]"
delete: "chore(content): delete {{collection}} “{{slug}}” [bot]"
uploadMedia: "chore(image): upload image “{{path}}” [bot]"
deleteMedia: "chore(image): delete image “{{path}}” [bot]"
create: "feat(content): create {{collection}} “{{slug}}” [cms]"
update: "feat(content): update {{collection}} “{{slug}}” [cms]"
delete: "feat(content): delete {{collection}} “{{slug}}” [cms]"
uploadMedia: "feat(image): upload image “{{path}}” [cms]"
deleteMedia: "feat(image): delete image “{{path}}” [cms]"
slug:
encoding: ascii
clean_accents: true
Expand Down
10 changes: 5 additions & 5 deletions static/cms/prang/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ backend:
name: git-gateway
branch: master
commit_messages:
create: "chore(content): create {{collection}} “{{slug}}” [bot]"
update: "chore(content): update {{collection}} “{{slug}}” [bot]"
delete: "chore(content): delete {{collection}} “{{slug}}” [bot]"
uploadMedia: "chore(image): upload image “{{path}}” [bot]"
deleteMedia: "chore(image): delete image “{{path}}” [bot]"
create: "feat(content): create {{collection}} “{{slug}}” [cms]"
update: "feat(content): update {{collection}} “{{slug}}” [cms]"
delete: "feat(content): delete {{collection}} “{{slug}}” [cms]"
uploadMedia: "feat(image): upload image “{{path}}” [cms]"
deleteMedia: "feat(image): delete image “{{path}}” [cms]"
slug:
encoding: ascii
clean_accents: true
Expand Down

0 comments on commit 54fa973

Please sign in to comment.