openminedai/Commit Pattern Enforcer
A flexible GitHub Action that validates commit messages against custom regex patterns.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| pattern | Regex pattern to validate commit messages against | no | ^(feat|fix|docs|style|refactor|test|chore|build|ci|perf|revert)(\(.+\))?: .+ |
| pattern-description | Description of the expected commit message format | no | Conventional Commits format: type(scope): description |
| check-all-commits | Whether to check all commits in the push or just the latest one | no | false |
| case-sensitive | Whether the pattern matching should be case sensitive | no | true |
| fail-on-error | Whether to fail the action if validation fails | no | true |
| custom-error-message | Custom error message to display when validation fails | no | "" |
Outputs
| name | description |
|---|---|
| valid | Whether all commit messages passed validation |
| failed-commits | JSON array of commit messages that failed validation |
| total-commits | Total number of commits checked |