Skip to content

Commit 070f29a

Browse files
committed
chore: bump version to 0.7.0
Update version number across all package configuration files: - Cargo.toml: 0.6.0 -> 0.7.0 - PKGBUILD: 0.6.0 -> 0.7.0 - git-commit-helper.spec: 0.6.0 -> 0.7.0 - debian/changelog: add 0.7.0 release notes - README.md: add version history for 0.7.0 This release includes major feature additions: - Added --no-log parameter for disabling product logs - Renamed --no-test-suggestions to --no-influence - Added Log field for product-oriented change summaries - Enhanced --issues parameter to support multiple values - Updated testing suggestions format and labeling chore: 升级版本到 0.7.0 更新所有包配置文件中的版本号: - Cargo.toml: 0.6.0 -> 0.7.0 - PKGBUILD: 0.6.0 -> 0.7.0 - git-commit-helper.spec: 0.6.0 -> 0.7.0 - debian/changelog: 添加 0.7.0 发布说明 - README.md: 添加 0.7.0 版本历史 此版本包含主要功能添加: - 添加 --no-log 参数用于禁用产品日志 - 重命名 --no-test-suggestions 为 --no-influence - 添加面向产品的日志字段功能 - 增强 --issues 参数支持多个值 - 更新测试建议格式和标识
1 parent 21abe3e commit 070f29a

7 files changed

Lines changed: 158 additions & 5 deletions

File tree

.specstory/history/2025-07-29_05-23Z-列举测试建议时,不要使用-,而是用数字编号.md

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4073,10 +4073,132 @@ git --no-pager add .
40734073

40744074
---
40754075

4076+
```bash
4077+
git --no-pager commit -m "feat: add --no-log parameter and rename --no-test-suggestions to --no-influence
4078+
4079+
1. Add --no-log parameter to disable Log field generation
4080+
2. Rename --no-test-suggestions to --no-influence for better clarity
4081+
3. Create new prompt template combinations supporting flexible control
4082+
4. Add four new template variants for different Log/Influence combinations
4083+
5. Update function signatures to handle both parameters independently
4084+
6. Update documentation to reflect parameter name changes and new options
4085+
7. Maintain backward compatibility for existing functionality
4086+
4087+
This provides more granular control over commit message sections,
4088+
allowing users to selectively disable specific parts as needed.
4089+
4090+
feat: 添加 --no-log 参数并重命名 --no-test-suggestions 为 --no-influence
4091+
4092+
1. 添加 --no-log 参数以禁用 Log 字段生成
4093+
2. 将 --no-test-suggestions 重命名为 --no-influence 以提高清晰度
4094+
3. 创建新的提示词模板组合以支持灵活控制
4095+
4. 添加四个新的模板变体以支持不同的 Log/Influence 组合
4096+
5. 更新函数签名以独立处理两个参数
4097+
6. 更新文档以反映参数名称更改和新选项
4098+
7. 保持现有功能的向后兼容性
4099+
4100+
这提供了对提交信息各部分更精细的控制,允许用户根据需要
4101+
选择性地禁用特定部分。"
4102+
```
40764103

4104+
```
4105+
制,允许用户根据需要 \选择性地禁用特定部分。""
4106+
[master fb6bfdf] feat: add --no-log parameter and rename --no-test-suggestions to --no-influenc
4107+
e
4108+
4 files changed, 517 insertions(+), 24 deletions(-)
4109+
➜ git-commit-helper git:(master)
4110+
```
40774111

40784112
---
40794113

4114+
## ✅ 功能已完成实现
4115+
4116+
我已经成功添加了 `--no-log` 参数并将 `--no-test-suggestions` 重命名为 `--no-influence`
4117+
4118+
### 🎯 核心更改
4119+
4120+
#### 1. **参数重命名和添加**
4121+
-`--no-test-suggestions``--no-influence`(更清晰的命名)
4122+
- ✅ 新增 `--no-log` 参数用于禁用 Log 字段
4123+
4124+
#### 2. **模板系统扩展**
4125+
- ✅ 创建了4个新的提示词模板组合:
4126+
- `*_NO_LOG`:有影响分析,无产品日志
4127+
- `*_NO_TEST_NO_LOG`:无影响分析,无产品日志
4128+
4129+
#### 3. **灵活的控制组合**
4130+
现在支持4种组合模式:
4131+
- **默认**:包含影响分析 + 产品日志
4132+
- **`--no-influence`**:无影响分析 + 有产品日志
4133+
- **`--no-log`**:有影响分析 + 无产品日志
4134+
- **`--no-influence --no-log`**:无影响分析 + 无产品日志
4135+
4136+
### 📋 可用的新命令格式
4137+
4138+
```bash
4139+
# 禁用影响分析(原测试建议)
4140+
git-commit-helper commit --no-influence
4141+
4142+
# 禁用产品日志字段
4143+
git-commit-helper commit --no-log
4144+
4145+
# 同时禁用两者
4146+
git-commit-helper commit --no-influence --no-log
4147+
4148+
# 完整的禁用组合
4149+
git-commit-helper commit --no-review --no-influence --no-log
4150+
```
4151+
4152+
### 🔧 技术实现
4153+
4154+
#### **函数签名更新:**
4155+
```rust
4156+
pub async fn generate_commit_message(
4157+
// ... 其他参数
4158+
no_influence: bool, // 原 no_test_suggestions
4159+
no_log: bool, // 新增参数
4160+
issues: Option<String>,
4161+
) -> anyhow::Result<()>
4162+
```
4163+
4164+
#### **模板选择逻辑:**
4165+
```rust
4166+
fn template(&self, include_test_suggestions: bool, include_log: bool) -> &'static str {
4167+
match (self, include_test_suggestions, include_log) {
4168+
// 12种组合模式支持所有语言和选项
4169+
}
4170+
}
4171+
```
4172+
4173+
### 📝 帮助信息展示
4174+
4175+
```
4176+
Options:
4177+
--no-influence 禁用影响分析(测试建议)
4178+
--no-log 禁用产品日志字段
4179+
--issues [<ISSUES>...] 关联的GitHub issue或PMS链接
4180+
```
4181+
4182+
### ✨ 优势特性
4183+
4184+
1. **更清晰的命名**`--no-influence``--no-test-suggestions` 更简洁
4185+
2. **精细控制**:可以独立控制每个字段的生成
4186+
3. **组合灵活性**:支持任意组合禁用不同部分
4187+
4. **向后兼容**:所有现有功能保持不变
4188+
5. **全面测试**:所有单元测试继续通过
4189+
4190+
现在您可以根据不同的使用场景灵活地控制提交信息的生成了!还有什么需要进一步调整的地方吗?
4191+
4192+
---
4193+
4194+
_**User**_
4195+
4196+
发布 v0.7.0 版本
4197+
4198+
---
4199+
4200+
_**Assistant**_
4201+
40804202

40814203

40824204
---

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "git-commit-helper"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
edition = "2021"
55

66
[dependencies]

PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pkgname=git-commit-helper
2-
pkgver=0.6.0
2+
pkgver=0.7.0
33
pkgrel=1
44
pkgdesc="一个帮助规范 git commit message 的工具"
55
arch=('x86_64')

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,16 @@ jobs:
713713

714714
## 📝 版本历史
715715

716+
### v0.7.0
717+
718+
- feat: 添加 --no-log 参数并重命名 --no-test-suggestions 为 --no-influence
719+
- fix: 支持 --issues 参数接受多个值
720+
- feat: 添加面向产品的日志字段功能
721+
- feat: 将测试建议标识改为 Influence
722+
- feat: 支持 --issues 参数指定多个引用
723+
- feat: 更新测试建议格式为数字列表
724+
- 多项工作流和构建改进
725+
716726
### v0.5.3
717727

718728
- Release version 0.5.3

debian/changelog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
git-commit-helper (0.7.0) unstable; urgency=medium
2+
3+
* feat: add --no-log parameter and rename --no-test-suggestions to --no-influence
4+
* fix: support multiple arguments for --issues parameter
5+
* feat: add Log field for product-oriented change summaries
6+
* feat: change testing suggestions label to Influence
7+
* feat: support multiple issues in --issues parameter
8+
* feat: add test suggestion disable flag
9+
* Multiple workflow and build improvements
10+
11+
-- zccrs <zhangjide@deepin.org> 二, 29 7月 2025 14:32:18 +0800
12+
113
git-commit-helper (0.6.0) unstable; urgency=medium
214

315
* Fix variable expansion in PKGBUILD modification for AUR publishing

git-commit-helper.spec

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: git-commit-helper
2-
Version: 0.6.0
2+
Version: 0.7.0
33
Release: 1%{?dist}
44
Summary: 帮助规范 git commit message 的工具
55

@@ -31,7 +31,16 @@ install -Dm644 completions/git-commit-helper.zsh %{buildroot}%{_datadir}/zsh/sit
3131
%{_datadir}/zsh/site-functions/_git-commit-helper
3232

3333
%changelog
34-
* Mon Jan 06 2025 zccrs <zhangjide@deepin.org> - 0.6.0-1
34+
* 二 7月 29 2025 zccrs <zccrs@live.com> - 0.7.0-1
35+
- feat: add --no-log parameter and rename --no-test-suggestions to --no-influence
36+
- fix: support multiple arguments for --issues parameter
37+
- feat: add Log field for product-oriented change summaries
38+
- feat: change testing suggestions label to Influence
39+
- feat: support multiple issues in --issues parameter
40+
- feat: add test suggestion disable flag
41+
- Multiple workflow and build improvements
42+
43+
* Mon Jan 06 2025 zccrs <zccrs@live.com> - 0.6.0-1
3544
- Fix variable expansion in PKGBUILD modification for AUR publishing
3645
- Improve GitHub Actions workflow for better package building
3746

0 commit comments

Comments
 (0)