node-mssql icon indicating copy to clipboard operation
node-mssql copied to clipboard

Question about commit-message enforcement with 100+ contributors

Open Flyingmiata-droid opened this issue 5 months ago • 1 comments

Hi @dhensby, node-mssql enforces commitlint and ships via semantic-release, which is exactly the setup I'm researching. With 100+ contributors feeding one conventional-commit pipeline, I'd love to learn (not a pitch): how often do you bounce a PR purely over commit message format? And has a non-conforming commit ever broken or skewed a release when one slipped through? Trying to gauge whether this is a real recurring tax for maintainers. Fine to close if it's noise. Thanks for maintaining this.

Flyingmiata-droid avatar Jun 28 '26 21:06 Flyingmiata-droid

Hey @Flyingmiata-droid - PR volume isn't that large on the repo, so bouncing PRs due to commit messages isn't that big a deal at the moment, but it does happen - we will have to give feedback that commits need re-wording and depending on the contributor's familiarity with git, that may mean they close the PR and open a completely new one (rather than rewriting git history), etc. So that can produce some noise.

But it also depends on your workflow, if you were to use squash merges where you can write the merge commit in the UI, then this problem could disappear.

In terms of bad commits that get through, that's pretty rare because the CI has commit linting and so you can't get a green PR without commit messages being well formed; if it does happen, you can also push empty commits to force releases git commit -m 'feat: force a release' --allow-empty.

As with anything like this, it adds an overhead that you have to be prepared to accept for the benefit and I think zero-touch, automated releases is so high value that I'm prepared to accept the friction that comes with it.

dhensby avatar Jun 29 '26 09:06 dhensby