From 75fcf65d509ef0e628332fabdc17864beacdadc3 Mon Sep 17 00:00:00 2001 From: Sergio Date: Thu, 5 Nov 2020 21:40:04 +0100 Subject: [PATCH] Revert "chore: improved commit-lint" This reverts commit 08db36c3638d69ec7b11453a37c30052ce985752. --- .commitlintrc.yml | 23 ----------------------- .github/workflows/lint-pr-title.yml | 13 ++++--------- package.json | 1 - yarn.lock | 16 ---------------- 4 files changed, 4 insertions(+), 49 deletions(-) delete mode 100644 .commitlintrc.yml diff --git a/.commitlintrc.yml b/.commitlintrc.yml deleted file mode 100644 index 69108f2b6..000000000 --- a/.commitlintrc.yml +++ /dev/null @@ -1,23 +0,0 @@ -extends: - - '@commitlint/config-conventional' -# workaround to accept ! as breaking changes -rules: - footer-max-line-length: [ 2, 'always', 72 ] - header-max-length: [ 2, 'always', 72 ] - body-max-line-length: [ 2, 'always', 72 ] - type-enum: [ - 2, - 'always', - [ - 'build', - 'ci', - 'docs', - 'feat', - 'fix', - 'perf', - 'refactor', - 'revert', - 'style', - 'test', - ] - ] \ No newline at end of file diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index 502895baa..eb461d79b 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -8,15 +8,10 @@ on: - synchronize jobs: - check_commit_conventions: + main: runs-on: ubuntu-latest if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Check commit conventions - uses: wagoid/commitlint-github-action@v2 - with: - configFile: .commitlintrc.yml - failOnWarnings: true \ No newline at end of file + - uses: amannn/action-semantic-pull-request@v2.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index c80448636..c80db8019 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "@babel/preset-env": "^7.11.5", "@babel/preset-react": "^7.10.4", "@babel/preset-typescript": "^7.10.4", - "@commitlint/config-conventional": "^11.0.0", "@testing-library/react": "^11.0.4", "@types/babel-types": "^7.0.9", "@types/jest": "^26.0.14", diff --git a/yarn.lock b/yarn.lock index 80f691a2c..3f9c80d11 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1068,13 +1068,6 @@ exec-sh "^0.3.2" minimist "^1.2.0" -"@commitlint/config-conventional@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-11.0.0.tgz#3fa300a1b639273946de3c3f15e1cda518333422" - integrity sha512-SNDRsb5gLuDd2PL83yCOQX6pE7gevC79UPFx+GLbLfw6jGnnbO9/tlL76MLD8MOViqGbo7ZicjChO9Gn+7tHhA== - dependencies: - conventional-changelog-conventionalcommits "^4.3.1" - "@eslint/eslintrc@^0.1.3": version "0.1.3" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.1.3.tgz#7d1a2b2358552cc04834c0979bd4275362e37085" @@ -4580,15 +4573,6 @@ conventional-changelog-angular@^5.0.3: compare-func "^2.0.0" q "^1.5.1" -conventional-changelog-conventionalcommits@^4.3.1: - version "4.5.0" - resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.5.0.tgz#a02e0b06d11d342fdc0f00c91d78265ed0bc0a62" - integrity sha512-buge9xDvjjOxJlyxUnar/+6i/aVEVGA7EEh4OafBCXPlLUQPGbRUBhBUveWRxzvR8TEjhKEP4BdepnpG2FSZXw== - dependencies: - compare-func "^2.0.0" - lodash "^4.17.15" - q "^1.5.1" - conventional-changelog-core@^3.1.6: version "3.2.3" resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-3.2.3.tgz#b31410856f431c847086a7dcb4d2ca184a7d88fb"