๐ Action: PR Hygiene Validator
Ensure absolute consistency across repository commit history and Pull Request descriptions.
[!IMPORTANT] A clean git history is critical for automated release notes and overall repository health. The PR Hygiene Validator enforces Conventional Commits formatting for Pull Request titles and ensures that all PR bodies meet a minimum character length.
๐ Key Impact
- ๐ฅ History Integrity: Guaranteed Conventional Commits for better automated changelogs.
- ๐ฌ Quality Descriptions: Prevents empty PR bodies by enforcing minimum length thresholds.
- ๐ค Automated Policing: Posts corrective feedback directly to the PR for engineer self-service.
โ๏ธ Configuration
| Input | Required | Default | Description |
|---|---|---|---|
github-token |
Yes | - | Token for API interactions and comments. |
min-description-length |
No | 15 |
Minimum character count for the PR body. |
โก Quick Start
- name: ๐ Validate PR Hygiene
uses: carlos-camara/qa-hub-actions/pr-hygiene-validator@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
min-description-length: '30'
[View Full Wiki](https://carlos-camara.github.io/qa-hub-actions/actions/pr-hygiene-validator/)