使用 npm 版本补丁时自定义提交消息

Customize Commit message while using npm version patch

使用 npm version patch 时是否可以自定义提交消息?

我想将其更改为 :up-arrow: @VERSIONNUMBER

从 npm 2.7.4(和 commit 3703b0b, March 2015)开始:

The message in npm version -m <message> is mapped to the message config parameter in .npmrc.

虽然这似乎并没有专门与 patch 相关联。
This test 显示修改提交消息的配置:

sign-git-tag=false
message=":bookmark: %s"

您可以尝试将 :bookmark: 替换为 :up-arrow: