Skip to content

Releases: zccrs/git-commit-helper

master

29 Jul 06:32

Choose a tag to compare

master Pre-release
Pre-release
pre-release-16588439639

feat: add --no-log parameter and rename --no-test-suggestions to --no…

master

29 Jul 05:31

Choose a tag to compare

master Pre-release
Pre-release
chore: Fix typo in prompt templates

This commit fixes a minor typo in the bilingual prompt templates used
for generating commit messages. The list items within the "Testing
Suggestions" sections had hyphens instead of numbered list markers
("1.", "2.", etc.). This change ensures that the generated commit
messages adhere to the specified format and are more readable. This does
not impact the functionality of the application but improves the quality
and consistency of generated documentation.

Testing Suggestions:
1. Verify that the generated commit messages now have numbered lists in
the "Testing Suggestions" sections.
2. Ensure that the tool can generate testing suggestions with the
numbered list and without hyphens.
3. Manually review generated commit messages for correct formatting.

chore: 修复提示模板中的拼写错误

此提交修复了用于生成提交消息的双语提示模板中的一个小的拼写错误。 “测试建
议”部分中的列表项使用连字符而不是编号列表标记(“1.”、“2.” 等)。 此更改
确保生成的提交消息符合指定的格式并且更具可读性。 这不会影响应用程序的功
能,但会提高生成文档的质量和一致性。

测试建议:
1. 验证生成的提交消息现在在“测试建议”部分中是否具有编号列表。
2. 确保该工具可以生成带有编号列表而没有连字符的测试建议。
3. 手动检查生成的提交消息,以确保格式正确。

v0.6.0

17 Jul 08:11

Choose a tag to compare

What's Changed

  • feat: 添加仅英文提交信息支持 by @ice909 in #10

Full Changelog: v0.5.3...v0.6.0

master

17 Jul 10:43
c2cff77

Choose a tag to compare

master Pre-release
Pre-release
pre-release-16342895243

Update build.yml

master

17 Jul 10:37

Choose a tag to compare

master Pre-release
Pre-release
pre-release-16342768636

fix: Fix PKGBUILD path in AUR publish script

master

17 Jul 10:27

Choose a tag to compare

master Pre-release
Pre-release
Fix AUR publishing: add custom script to handle detached HEAD

1. Add custom AUR publishing script before the existing action
2. Properly handle detached HEAD by creating local master branch
3. Set up SSH environment for AUR access
4. Pull latest changes before pushing to avoid conflicts
5. Keep existing action as backup method

Testing showed that both ulises-jeremias and KSXGitHub actions
have the same issue: AUR repo clone results in detached HEAD
with no local master branch to push.

Manual testing confirmed this approach works:
- Clone AUR repo -> detached HEAD
- git checkout -b master -> creates local branch
- git pull origin master -> gets latest changes
- Modify files and commit -> works
- git push origin master -> SUCCESS ✅

修复AUR发布:添加自定义脚本处理分离HEAD问题

1. 在现有action之前添加自定义AUR发布脚本
2. 通过创建本地master分支正确处理分离HEAD
3. 为AUR访问设置SSH环境
4. 推送前拉取最新更改以避免冲突
5. 保留现有action作为备用方法

测试显示ulises-jeremias和KSXGitHub的action都有相同问题:
AUR仓库克隆后处于分离HEAD状态,没有本地master分支可推送。

手动测试确认此方法有效:
- 克隆AUR仓库 -> 分离HEAD
- git checkout -b master -> 创建本地分支
- git pull origin master -> 获取最新更改
- 修改文件并提交 -> 正常工作
- git push origin master -> 成功 ✅

master

17 Jul 09:09

Choose a tag to compare

master Pre-release
Pre-release
Optimize AUR commit messages for better readability

1. Replace generic $GITHUB_SHA with descriptive commit message
2. Include actual AUR version number in commit message
3. Set AUR_VERSION environment variable for reuse
4. Use clear format: 'Update git-commit-helper to {version} - Auto-published from GitHub Actions'

Before: commit message was just a commit hash like 'a58345d...'
After: commit message will be 'Update git-commit-helper to 0.6.0.r7.06b1e0c - Auto-published from GitHub Actions'

This makes AUR commit history much more readable and informative.

优化AUR提交信息以提高可读性

1. 将通用的$GITHUB_SHA替换为描述性提交信息
2. 在提交信息中包含实际的AUR版本号
3. 设置AUR_VERSION环境变量以供重用
4. 使用清晰格式:'Update git-commit-helper to {version} - Auto-published from GitHub Actions'

之前:提交信息只是一个commit hash,如'a58345d...'
之后:提交信息将是'Update git-commit-helper to 0.6.0.r7.06b1e0c - Auto-published from GitHub Actions'

这使得AUR提交历史更易读和更有信息量。

master

17 Jul 09:07

Choose a tag to compare

master Pre-release
Pre-release
Optimize AUR commit messages for better readability

1. Replace generic $GITHUB_SHA with descriptive commit message
2. Include actual AUR version number in commit message
3. Set AUR_VERSION environment variable for reuse
4. Use clear format: 'Update git-commit-helper to {version} - Auto-published from GitHub Actions'

Before: commit message was just a commit hash like 'a58345d...'
After: commit message will be 'Update git-commit-helper to 0.6.0.r7.06b1e0c - Auto-published from GitHub Actions'

This makes AUR commit history much more readable and informative.

优化AUR提交信息以提高可读性

1. 将通用的$GITHUB_SHA替换为描述性提交信息
2. 在提交信息中包含实际的AUR版本号
3. 设置AUR_VERSION环境变量以供重用
4. 使用清晰格式:'Update git-commit-helper to {version} - Auto-published from GitHub Actions'

之前:提交信息只是一个commit hash,如'a58345d...'
之后:提交信息将是'Update git-commit-helper to 0.6.0.r7.06b1e0c - Auto-published from GitHub Actions'

这使得AUR提交历史更易读和更有信息量。

master

17 Jul 08:57

Choose a tag to compare

master Pre-release
Pre-release
Fix GitHub Actions: fetch complete git history and tags

1. Add fetch-depth: 0 to actions/checkout to get full git history
2. Add debug output to show available tags
3. Fix issue where no tags were available in GitHub Actions

The problem was that actions/checkout@v2 by default only does
a shallow clone without tags, causing the version calculation
to fail. With fetch-depth: 0, we get the complete git history
including all tags needed for version calculation.

修复GitHub Actions:获取完整的git历史和标签

1. 为actions/checkout添加fetch-depth: 0以获取完整git历史
2. 添加调试输出显示可用标签
3. 修复GitHub Actions中没有标签可用的问题

问题是actions/checkout@v2默认只做浅克隆而不包含标签,
导致版本计算失败。使用fetch-depth: 0可以获取包含
版本计算所需所有标签的完整git历史。

master

17 Jul 08:53

Choose a tag to compare

master Pre-release
Pre-release
Fix GitHub Actions: fetch complete git history and tags

1. Add fetch-depth: 0 to actions/checkout to get full git history
2. Add debug output to show available tags
3. Fix issue where no tags were available in GitHub Actions

The problem was that actions/checkout@v2 by default only does
a shallow clone without tags, causing the version calculation
to fail. With fetch-depth: 0, we get the complete git history
including all tags needed for version calculation.

修复GitHub Actions:获取完整的git历史和标签

1. 为actions/checkout添加fetch-depth: 0以获取完整git历史
2. 添加调试输出显示可用标签
3. 修复GitHub Actions中没有标签可用的问题

问题是actions/checkout@v2默认只做浅克隆而不包含标签,
导致版本计算失败。使用fetch-depth: 0可以获取包含
版本计算所需所有标签的完整git历史。