diff --git a/.commitlintrc.json b/.commitlintrc.json index 37844f25a..d61fbee61 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,6 +1,6 @@ { "rules": { - "header-max-length": [2, "always", 72], + "header-max-length": [2, "always", 100], "body-leading-blank": [2, "always"], "type-empty": [2, "never"], "type-enum": [ diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml new file mode 100644 index 000000000..fc88a0484 --- /dev/null +++ b/.github/workflows/pr-title-check.yml @@ -0,0 +1,30 @@ +name: PR Title Check + +on: + pull_request: + types: [opened, edited, synchronize] + +jobs: + pr-title-check: + runs-on: ubuntu-latest + steps: + - name: Check PR Title + uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + # Configure the action to use conventional commit types + types: | + feat + fix + docs + style + refactor + perf + test + chore + ci + build + revert + # Don't require scopes + requireScope: false \ No newline at end of file