Our Git migration from SVN mandates commit messages include a JIRA ticket number. However, since hooks are not transferred with clones, how can we consistently enforce this rule?
hey, have you thought of moving the check to the ci process? it lets you scan commit msgs on push, so you dont rely on client hooks being there. works well for enforcing the rule
One method I’ve found effective is implementing server-side commit message validation within your repository management system. This ensures that all pushed commits are checked against your ticket number policy regardless of local setup. For instance, integrating a script within the repository’s backend that evaluates messages upon push can provide a robust solution. Although it may require adjustments in the deployment process, the long-term benefit is a consistently enforced standard that is applied uniformly to every commit, reducing manual oversight and potential discrepancies.