Created
May 18, 2022 15:49
-
-
Save mattbailey/acd2c302c463c116762f0153b7eaf184 to your computer and use it in GitHub Desktop.
github workflow action for conventional commit checking
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
# This action makes PRs require conventional commits in both | |
# the pull request title, and commit message. | |
# | |
# See: https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional | |
name: commitlint | |
on: | |
pull_request: | |
types: ["opened", "edited", "reopened", "synchronize"] | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 0 | |
- run: | | |
npm install @commitlint/config-conventional | |
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js | |
- uses: wagoid/commitlint-github-action@v4 | |
- uses: JulienKode/pull-request-name-linter-action@v0.4.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment