Skip to content

NeaByteLab/Commit-Base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commit Base

Install this app CI License Last Commit Open Issues

Commit Base is an automated GitHub workflow that enforces commit message standards and repository quality checks for every Pull Request and push to the main branch.


✨ Features

  • Strict commit message linting for every PR and push to main
  • README.md, LICENSE, and .gitignore files are required in every branch
  • Clear error messages for fast troubleshooting
  • Easy integration with any GitHub repository
  • Fail-fast CI/CD: no changes will be merged or pushed to main unless all checks pass

🚀 Quick Start

  1. Copy .github/workflows/standard-repo.yml into your repository.
  2. Ensure your project root contains README.md, LICENSE, and .gitignore.
  3. Create a Pull Request or push to the main branch — Commit Base will automatically check everything!

📝 Commit Message Format

Every commit must follow this pattern:

<type>(<scope>): <subject> :<emoji>:

Allowed types: feat, fix, docs, refactor, chore, test, build, ci, revert

Examples:

  • feat(api): add payment endpoint :sparkles:
  • fix(auth): fix token refresh bug :bug:
  • docs(readme): update documentation :memo:
  • revert(login): restore previous login logic :rewind:

❗ If any commit message does not match this format, or if required files are missing, the check will fail and your PR or push will be blocked.


✅ Quality Gate Checks

  • Enforces commit message format for all PRs and pushes to main
  • Fails if README.md, LICENSE, or .gitignore is missing
  • Clear error messages for fast troubleshooting

💡 Advanced Usage

  • You can customize the workflow file to enforce more files or rules if needed.
  • Add or edit allowed commit types and scopes by adjusting the workflow regex.
  • The workflow can be extended for other branches (e.g., dev) by editing the trigger in the workflow YAML.

🙌 Contributing

Want to contribute? Please check out CONTRIBUTING.md for commit message format and PR rules.


🆘 Need Help?


📄 License

MIT © NeaByteLab