Skip to content

Commit

Permalink
chore: added missing PR title validation action (vuestorefront#6274)
Browse files Browse the repository at this point in the history
* chore: added missing PR title validation action

* chore: temporarily removed @commitlint/config-lerna-scopes

the packages were removed due to the lerna structure not being fully complete structured correctly.
  • Loading branch information
bloodf authored Sep 4, 2021
1 parent c9e221b commit eae0e74
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 26 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/conventional-pr-name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Commitlint PR Title
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
lint:
name: Validate PR Title (conventional-commit)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm install @commitlint/config-conventional
- uses: JulienKode/[email protected]
3 changes: 1 addition & 2 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
extends: [
'@commitlint/config-conventional',
'@commitlint/config-lerna-scopes'
'@commitlint/config-conventional'
]
};
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"@babel/core": "^7.10.5",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@commitlint/config-lerna-scopes": "^13.1.0",
"@rollup/plugin-babel": "^5.1.0",
"@rollup/plugin-replace": "^2.3.3",
"@types/jest": "^26.0.24",
Expand Down
24 changes: 1 addition & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1225,16 +1225,6 @@
dependencies:
conventional-changelog-conventionalcommits "^4.3.1"

"@commitlint/config-lerna-scopes@^13.1.0":
version "13.1.0"
resolved "https://registry.yarnpkg.com/@commitlint/config-lerna-scopes/-/config-lerna-scopes-13.1.0.tgz#c30006ff60a2a625184b9c37bc2ba8ce44ff0d60"
integrity sha512-/OTFM75GYHFRm5m1TKOpHsLvAUuGL6GYnA5xJDT4fe2vPIGqgBYVL9hEolKYTJfDtviBq4fEkEWZQjQF5e4KgA==
dependencies:
globby "^11.0.1"
import-from "4.0.0"
resolve-pkg "2.0.0"
semver "7.3.5"

"@commitlint/ensure@^13.1.0":
version "13.1.0"
resolved "https://registry.yarnpkg.com/@commitlint/ensure/-/ensure-13.1.0.tgz#057a325b54f104cbeed2a26bacb5eec29298e7d5"
Expand Down Expand Up @@ -10198,7 +10188,7 @@ [email protected]:
merge2 "^1.3.0"
slash "^3.0.0"

globby@^11.0.1, globby@^11.0.3, globby@^11.0.4:
globby@^11.0.3, globby@^11.0.4:
version "11.0.4"
resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5"
integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==
Expand Down Expand Up @@ -10976,11 +10966,6 @@ [email protected]:
dependencies:
resolve-from "^5.0.0"

[email protected]:
version "4.0.0"
resolved "https://registry.yarnpkg.com/import-from/-/import-from-4.0.0.tgz#2710b8d66817d232e16f4166e319248d3d5492e2"
integrity sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==

import-from@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/import-from/-/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1"
Expand Down Expand Up @@ -16963,13 +16948,6 @@ [email protected], resolve-global@^1.0.0:
dependencies:
global-dirs "^0.1.1"

[email protected]:
version "2.0.0"
resolved "https://registry.yarnpkg.com/resolve-pkg/-/resolve-pkg-2.0.0.tgz#ac06991418a7623edc119084edc98b0e6bf05a41"
integrity sha512-+1lzwXehGCXSeryaISr6WujZzowloigEofRB+dj75y9RRa/obVcYgbHJd53tdYw8pvZj8GojXaaENws8Ktw/hQ==
dependencies:
resolve-from "^5.0.0"

resolve-url@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
Expand Down

0 comments on commit eae0e74

Please sign in to comment.