Skip to content

Commit

Permalink
ci: update commitlint config
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealWaldo committed May 22, 2024
1 parent 845a572 commit 7ac74ca
Show file tree
Hide file tree
Showing 7 changed files with 1,399 additions and 19 deletions.
7 changes: 7 additions & 0 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"body-max-line-length": [0, "always", "Infinity"],
"footer-max-line-length": [0, "always", "Infinity"],
},
};
File renamed without changes.
20 changes: 14 additions & 6 deletions .github/workflows/pull.yaml → .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,21 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Pull request linter action
uses: JulienKode/[email protected]
- name: Validate Pull Request Message
run: |
cat << 'EOM' | npx commitlint --verbose --config .commitlintrc.cjs
${{ github.event.pull_request.title }}
- name: Commit Linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: wagoid/[email protected]
${{ github.event.pull_request.body }}
EOM
- name: Validate Commit Messages
run: |
npx commitlint \
--from ${{ github.event.pull_request.base.sha }} \
--to ${{ github.event.pull_request.head.sha }} \
--verbose \
--config .commitlintrc.cjs
- uses: actions/setup-python@v5
with:
Expand Down
File renamed without changes.
6 changes: 0 additions & 6 deletions commitlint.config.js

This file was deleted.

Loading

0 comments on commit 7ac74ca

Please sign in to comment.