🧩 Pre-Commit Hooks Update: Commit Message Tags, Versioning & Team Workflow #833
untoldengine
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone 👋
I’ve made a small but meaningful update to our pre-commit hooks — and it’s going to make our workflow smoother for everyone. This update helps us keep commit messages consistent, automate version bumps, and ensure commits are tested before they land in main branches.
🚀 Why This Matters
This isn’t just about rules — it’s about collaboration and clarity. By following the same commit format, we make it easier to:
🧩 What’s New
1️⃣ Commit Message Tags
Every commit message should start with a descriptive tag that summarizes the type of change:
Examples:
If the prefix is missing, the hook will show a friendly reminder with all valid tags.
🧠 How the Tags Are Used
These tags are more than labels — they’re used to drive versioning and changelog generation:
When a release is prepared, our scripts (for example,
next-version.sh) and git-cliff automatically:This makes our releases clear, predictable, and automated — no manual version guessing!
🧪 Quick Tests Before Commit
The pre-commit hook also runs a fast, filtered test suite:
This keeps the engine stable without running the full test suite every time. If something fails, you’ll know before it reaches a PR.
⚙️ How to Enable Pre-Commit Locally
If you haven’t already, enable the hooks once after cloning:
(You can also use
pip install pre-commitif you prefer Python.) After this, the hooks will automatically run before each commit.🚧 If You Run Into Errors
Sometimes the hooks might fail because of local environment issues (for example, broken tests or setup). You can bypass them temporarily by adding the
--no-verifyflag:Please use this sparingly. Skipping validation means your commit won’t be picked up by the automated versioning or changelog system.
🗂️ Summary
--no-verify(use sparingly)💬 Let’s Collaborate
These changes are part of making our workflow more open and maintainable for everyone. If you have ideas for additional tags (for example
[Style],[Deprecation], etc.) or run into any issues setting up pre-commit, please comment here.Let’s keep refining this process together — small improvements like these make collaboration smoother and help us move faster as a team. 🚀
Beta Was this translation helpful? Give feedback.
All reactions