我正在使用conventional-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)
- Gennemsnitsrente 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)
- app vers on number sent to API is now dynamic (1515384)
- 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)
- changed rxjs & rxjs-combat to v6.2.1 (19e9988)
- changed rxjs & rxjs-combat to v6.2.1 (5f85876)
- Critical illness link is now opening in native browser (61e6fb0)
- customer info is now available and presented for new customers as well. (16ec727)
- Demo app and mockserver has been updated with the new login flow (355514a)
- Devide bonusYear into two values (c6b6bb5)
- disbursedYear in Bonus is now recieved via API (a7bcdf1)
- downgrade lottie-web to make animations work again (0733dba)
- Enables FaceID if both touch and face are activated on Android (3305894)
- Exclude return from new savings graph calculations (39e5a60)
- FaceID activation and login now works on iOS (a544bba)
- Fixed contact page inconsistencies. (2c50990)
- Gennemsnitsrente is calculated more accurate in graph (15985fd)
make it possible to login with nemid after login with unsupported type (2cb7732)
- Monthly disbursements graph is now visible again in the disbursement page (13f3b88)
- new users can login with the new login flow (99f32a0)
- Onboarding btn removed from About page (e1042f5)
- Only show prompt of biometrics activation when not in onboarding (e8cb720)
- Re-added reference for mock.js (fc9bfb0)
- removed 'undefined' error on logout (savings.products) (4c0c550)
- removed all references for service workers. (b127f16)
- Show disbursed year in stead of bonus year in the accumulated bonus section (e4eff82)
- Trade disability has been moved to its own list-item (4ecea5e)
Features
- Add build number to version number (in parentheses) under 'About app' (9ae985a)
- added error handling for device and customer load. (2fc90de)
- Added handling of cpr no match error after pid. (63d68c6)
- added local spinner for onboarding biometrics. (0e26d79)
- app version number is now visible under 'Om Velliv 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)
- Re-enable biometric login automatically on iOS after NemID login (26ec3a4)
- show Accumulated bonus in app (09185d7)
- Show popup when we have a bonus from Velliv Foreningen this year (bbc8638)
- 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
标记进行比较。
有人知道我在做什么错吗?