finish-feature
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePre-operation Checks
操作前检查
Verify working tree is clean and current branch matches per .
feature/*${CLAUDE_PLUGIN_ROOT}/references/invariants.md根据,确认工作区是干净的,且当前分支符合格式。
${CLAUDE_PLUGIN_ROOT}/references/invariants.mdfeature/*Phase 1: Identify Feature
阶段1:识别功能
Goal: Determine feature name from current branch or argument.
Actions:
- If provided, use it as feature name
$ARGUMENTS - Otherwise, extract from current branch: (strip
git branch --show-currentprefix)feature/
目标:从当前分支或参数中确定功能名称。
操作:
- 如果提供了,将其用作功能名称
$ARGUMENTS - 否则,从当前分支提取:(去除
git branch --show-current前缀)feature/
Phase 2: Pre-finish Checks
阶段2:完成前检查
Goal: Run tests before finishing.
Actions:
- Identify test commands (check package.json, Makefile, etc.)
- Run tests if available; exit if tests fail
目标:在完成前运行测试。
操作:
- 识别测试命令(检查package.json、Makefile等)
- 如果有可用测试则运行;若测试失败则退出
Phase 3: Update Changelog
阶段3:更新变更日志
Goal: Document changes in CHANGELOG.md.
Actions:
- Ensure changes are in section per
[Unreleased]${CLAUDE_PLUGIN_ROOT}/examples/changelog.md - Commit CHANGELOG updates with footer
Co-Authored-By
目标:在CHANGELOG.md中记录变更。
操作:
- 确保变更记录在部分,遵循
[Unreleased]的规范${CLAUDE_PLUGIN_ROOT}/examples/changelog.md - 提交CHANGELOG的更新,添加页脚
Co-Authored-By
Phase 4: Finish Feature
阶段4:完成功能
Goal: Complete feature using git-flow-next CLI.
Actions:
- Run
git flow feature finish $FEATURE_NAME - Verify current branch: (should be on develop)
git branch --show-current - Push develop:
git push origin develop
目标:使用git-flow-next CLI完成功能开发。
操作:
- 运行
git flow feature finish $FEATURE_NAME - 确认当前分支:(应处于develop分支)
git branch --show-current - 推送develop分支:
git push origin develop