gpt4 book ai didi

git - 为什么每次更新变更日志时我的旧提交都会重新出现?

转载 作者:行者123 更新时间:2023-12-05 07:21:04 25 4
gpt4 key购买 nike

我正在使用 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)
- 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" 我也是有一个带有 git-tag-version = false.npmrc 文件。

我已经在互联网上搜索过,但我看不出我做错了什么?

我试图获取我最新的标签(使用 `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 标签进行比较.

有人知道我做错了什么吗?

最佳答案

我认为您需要删除 -r 标志。如果您仔细查看它说使用此“将覆盖”的文档

https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli#quick-start

关于git - 为什么每次更新变更日志时我的旧提交都会重新出现?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57111904/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com