From b471a77d821892ee94d651088395e320fbc6a6a3 Mon Sep 17 00:00:00 2001 From: duncdrum Date: Sun, 7 Apr 2024 14:43:37 +0200 Subject: [PATCH] feat(lint): empty type --- .github/dependabot.yml | 4 +++- .releaserc | 15 ++++++++++++--- README.md | 2 +- commitlint.config.cjs | 8 ++++++++ commitlint.config.js | 1 - 5 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 commitlint.config.cjs delete mode 100644 commitlint.config.js diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0056901..1418c27 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,4 +3,6 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "weekly" \ No newline at end of file + interval: "weekly" + commit-message: + prefix: "chore(gha):" \ No newline at end of file diff --git a/.releaserc b/.releaserc index ac2fba0..77cf3ca 100644 --- a/.releaserc +++ b/.releaserc @@ -2,7 +2,16 @@ "branches": ["master"], "plugins": [ "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits", + "releaseRules": [ + { "type": "", "release": "patch" } + ] + }, "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits" + }, ["@semantic-release/exec", { "prepareCmd": "ant -Dapp.version=${nextRelease.version}" }], @@ -13,9 +22,9 @@ ["@semantic-release/github", { "assets": [ { - "path": "build/visits-*.xar", - "name": "visits-${nextRelease.version}.xar", - "label": "Expath package (visits-${nextRelease.version}.xar)" + "path": "build/visits.xar", + "name": "visits.xar", + "label": "Expath package (visits.xar)" } ] }] diff --git a/README.md b/README.md index 394cc0c..ed5d4ac 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Source data for [Visits by Foreign Leaders and Heads of State](http://history.st Releases for this data package are automated. Any commit to the `master` branch will trigger the release automation. -All commit message must conform to [Angular Commit Message Conventions](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) to determine semantic versioning of releases, please adhere to these conventions, like so: +All commit message must conform to [Conventional Commit Messages](https://www.conventionalcommits.org/en/v1.0.0/) to determine semantic versioning of releases, please adhere to these conventions, like so: | Commit message | Release type | |-----------------|--------------| diff --git a/commitlint.config.cjs b/commitlint.config.cjs new file mode 100644 index 0000000..a3155c1 --- /dev/null +++ b/commitlint.config.cjs @@ -0,0 +1,8 @@ +module.exports = { + extends: ['@commitlint/config-conventional'], + rules: { + 'body-max-line-length': [1, 'always', 200], + 'type-empty': [1, 'never'], + 'subject-empty': [1, 'never'] + } +} \ No newline at end of file diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index bb9a3e8..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = {extends: ['@commitlint/config-angular']}