From 2ce0291147063dd88d2902fe782b357d24274799 Mon Sep 17 00:00:00 2001 From: duncdrum Date: Mon, 8 Apr 2024 12:31:15 +0200 Subject: [PATCH] feat(lint): empty type --- .github/dependabot.yml | 4 +++- .releaserc | 12 +++++++++--- README.md | 4 ++-- commitlint.config.cjs | 8 ++++++++ commitlint.config.js | 1 - 5 files changed, 22 insertions(+), 7 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 d90a805..99b33c9 100644 --- a/.releaserc +++ b/.releaserc @@ -2,6 +2,12 @@ "branches": ["master"], "plugins": [ "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits", + "releaseRules": [ + { "type": "", "release": "patch" } + ] + }, "@semantic-release/release-notes-generator", ["@semantic-release/exec", { "prepareCmd": "ant -Dapp.version=${nextRelease.version}" @@ -13,9 +19,9 @@ ["@semantic-release/github", { "assets": [ { - "path": "build/frus-history-*.xar", - "name": "frus-history-${nextRelease.version}.xar", - "label": "Expath package (frus-history-${nextRelease.version}.xar)" + "path": "build/frus-history.xar", + "name": "frus-history.xar", + "label": "Expath package (frus-history.xar)" } ] }] diff --git a/README.md b/README.md index 7d1c748..9b14e40 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,9 @@ Source data for [History of the Foreign Relations Series](https://history.state. ## Release -Releases for this data package are automated. Any commit to the `master`` branch will trigger the release automation. +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']}