From 3693033922a3bf7a3d9d725cc9dbd945457892ea Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 26 Mar 2021 09:51:55 -0400 Subject: [PATCH] chore: configuration file and script for versioning --- .versionrc.js | 27 +++++++++++++++++++++++++++ .versionrc.json | 26 -------------------------- packaging/debian-multiarch/sogo.docs | 1 - packaging/debian/sogo.docs | 1 - 4 files changed, 27 insertions(+), 28 deletions(-) create mode 100644 .versionrc.js delete mode 100644 .versionrc.json diff --git a/.versionrc.js b/.versionrc.js new file mode 100644 index 0000000000..52b1b41435 --- /dev/null +++ b/.versionrc.js @@ -0,0 +1,27 @@ +const tracker = { + filename: "Version", + updater: require("./Scripts/standard-version-updater.js") +} + +module.exports = { + tagPrefix: "SOGo-", + issueUrlFormat: "https://sogo.nu/bugs/view.php?id={{id}}", + compareUrlFormat: "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}", + types: [ + {type: "feat", section: "Features"}, + {type: "refactor", section: "Enhancements"}, + {type: "perf", section: "Enhancements"}, + {type: "i18n", section: "Localization"}, + {type: "fix", section: "Bug Fixes"}, + {type: "chore", hidden: true}, + {type: "docs", hidden: true}, + {type: "style", hidden: true}, + {type: "test", hidden: true} + ], + skip: { + commit: true, + tag: true + }, + packageFiles: [tracker], + bumpFiles: [tracker] +} diff --git a/.versionrc.json b/.versionrc.json deleted file mode 100644 index 3482e1c2da..0000000000 --- a/.versionrc.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "tag-prefix": "SOGo-", - "issueUrlFormat": "https://sogo.nu/bugs/view.php?id={{id}}", - "compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}", - "types": [ - {"type": "feat", "section": "Features"}, - {"type": "refactor", "section": "Enhancements"}, - {"type": "perf", "section": "Enhancements"}, - {"type": "i18n", "section": "Localization"}, - {"type": "fix", "section": "Bug Fixes"}, - {"type": "chore", "hidden": true}, - {"type": "docs", "hidden": true}, - {"type": "style", "hidden": true}, - {"type": "test", "hidden": true} - ], - "skip": { - "commit": true, - "tag": true - }, - "bumpFiles": [ - { - "filename": "Version", - "updater": "Scripts/standard-version-updater.js" - } - ] -} diff --git a/packaging/debian-multiarch/sogo.docs b/packaging/debian-multiarch/sogo.docs index 7b14a1f527..fe0d39508d 100644 --- a/packaging/debian-multiarch/sogo.docs +++ b/packaging/debian-multiarch/sogo.docs @@ -1,5 +1,4 @@ CHANGELOG.md -Scripts/*.js Scripts/*.sh Scripts/updates.php Apache/SOGo-apple-ab.conf diff --git a/packaging/debian/sogo.docs b/packaging/debian/sogo.docs index 7b14a1f527..fe0d39508d 100644 --- a/packaging/debian/sogo.docs +++ b/packaging/debian/sogo.docs @@ -1,5 +1,4 @@ CHANGELOG.md -Scripts/*.js Scripts/*.sh Scripts/updates.php Apache/SOGo-apple-ab.conf