You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: commiton:
pull_request:
branches: [ develop ]jobs:
check-commit-message:
name: check commit messageruns-on: ubuntu-lateststeps:
- name: Check message against regexuses: gsactions/commit-message-checker@v2with:
pattern: '(?:build|docs|refactor|test|fix|perf|chore|feat)(?:\(\w+\))?:\s[a-z]{1,2}.+'error: "The commit message must follow the commit messages guidelines"excludeDescription: 'true'# optional: this excludes the description body of a pull requestexcludeTitle: 'true'# optional: this excludes the title of a pull requestcheckAllCommitMessages: 'true'# optional: this checks all commits associated with a pull requestaccessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
The text was updated successfully, but these errors were encountered:
I did not know there was a conventional commit org! I was using my own conventional very similar borrowed from years ago somewhere.
Is there a regex that we can to check the commit message pattern following the conventional rules?
For example, I have this github action which uses gsactions/commit-message-checker@v2.
The text was updated successfully, but these errors were encountered: