forked from GetStream/stream-chat-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.versionrc.js
26 lines (23 loc) · 970 Bytes
/
.versionrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const versionFileUpdater = {
VERSION_REGEX: /VERSION = '(.+)'/,
readVersion: function (contents) {
const version = this.VERSION_REGEX.exec(contents)[1];
return version;
},
writeVersion: function (contents, version) {
return contents.replace(this.VERSION_REGEX.exec(contents)[0], `VERSION = '${version}'`);
}
}
module.exports = {
bumpFiles: [{ filename: './lib/stream-chat/version.rb', updater: versionFileUpdater }],
types: [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "chore", "section": "Other", "hidden": false},
{"type": "docs", "section": "Other", "hidden": false},
{"type": "style", "section": "Other", "hidden": false},
{"type": "refactor", "section": "Other", "hidden": false},
{"type": "perf", "section": "Other", "hidden": false},
{"type": "test", "section": "Other", "hidden": false}
]
}