我正在使用传统的changelog-cli,我想用我的最新版本(2.3.2)更新我的变更日志。
但是当我运行npm run changelog脚本时,随机的旧提交会被添加到新版本中——这是为什么呢?
这就是我的变更日志在运行后的样子npm run changelog:
2.3.2 (2019-07-19)
- Bug Fixes
- Customer info is now available and presented for new customers as well. (16ec727)
- Exclude return from new savings graph calculations (39e5a60)
- Policy is calculated more accurate in graph (15985fd)
Features
- Add build number to version number (in parentheses) under 'About app' (9ae985a)
- Build- and version number added to NINAA and Demo app (fff7962)
这就是它的实际外观:
2.3.2 (2019-07-19)
Bug Fixes
- Add condition for biometrics pop-up after NemID, if creating new user (0d226b6)
- Added native pop-up for enable biometrics in settings and onboarding (86d3773)
- Android splash screen is no longer stretched (28f9f4a)
- changed critical illness link and made error message better (a0d86fd)
- Changed new bonus features, to match new API (77e4c8e)
- changed rxjs & rxjs-combat to v6.2.1 (c38f216)
- Policy is calculated more accurate in graph (15985fd)
- Add build number to version number (in parentheses) under 'About app' (9ae985a)
- app version number is now visible under 'About app' in the menu (b46df6c)
- Bonus has been moved to disbursement page (50e92b0)
- Build- and version number added to NINAA and Demo app (fff7962)
- Change the welcome page and intro onboarding page with new text and design (3139790)
- Prompt user to activate biometrics login, if is not enabled, but the device supports it (7f4c5b3)
- SSL certificate error is now handled in the app with "update app" page (91c7329)
Reverts
- Contact-info notification removed (333e655)
- density removed from Android phones (c4ac51a)
- Face ID authentication is not yet supported on Android. Code reverted. (875771d)
所有这些提交都是旧的,并且已经在其受人尊敬的版本中进一步表示。为什么他们又出现了?
我在 package.json 中的脚本如下所示:"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r && git add CHANGELOG.md"而且我还有一个.npmrc带有git-tag-version = false.
我已经搜索了互联网,但我看不到我做错了什么?
我试图获取我的最新标签(使用`git tag -l),它们看起来像这样:
Build-v.-2.2.0.5
Build-v.-2.3.0.5
Build-v.2.2.0.4
Release-v.-2.2.0
Release-v.-2.3.0
Release-v.-2.3.0.5
Release-v.-2.3.1
v2.1.0-in-test-environments
因此,我的最新标签应该是 2.3.1,但是当我运行changelog脚本时,它会将更改与v2.1.0-in-test-environments标签进行比较。
有人知道我做错了什么吗?