Merge pull request #1031 from m26dvd/master #1085
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint Commit Message | |
on: | |
push: | |
# The branches below must be a subset of the branches above | |
branches: [ "master" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "master" ] | |
jobs: | |
# Make sure commit messages follow the conventional commits convention: | |
# https://www.conventionalcommits.org | |
commitlint: | |
if: "!startsWith(github.event.head_commit.message, 'bump:')" | |
name: Lint Commit Messages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: "echo \"export default {extends: ['@commitlint/config-conventional'], rules: { 'subject-case': [0], 'body-max-line-length': [0], 'footer-max-line-length': [0] }}\" > commitlint.config.mjs" | |
- uses: wagoid/commitlint-github-action@v6 |