feat: add automatic commit message generation#11993
feat: add automatic commit message generation#11993roomote-v0[bot] wants to merge 3 commits intomainfrom
Conversation
|
@roomote Run node scripts/find-missing-translations.js BACKEND - Checking 17 non-English locale(s): ca, de, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW BACKEND Missing Translations Report: 📝 ca:
📝 de:
📝 es:
📝 fr:
📝 hi:
📝 id:
📝 it:
📝 ja:
📝 ko:
📝 nl:
📝 pl:
📝 pt-BR:
📝 ru:
📝 tr:
📝 vi:
📝 zh-CN:
📝 zh-TW:
FRONTEND - Checking 17 non-English locale(s): ca, de, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW FRONTEND Missing Translations Report: ✅ ca: No missing translations PACKAGE.NLS - Checking 17 locale file(s): ca, de, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW PACKAGE.NLS Missing Translations Report: 📝 ca:
📝 hi:
📝 de:
📝 id:
📝 fr:
📝 ja:
📝 it:
📝 es:
📝 ko:
📝 nl:
📝 pl:
📝 pt-BR:
📝 ru:
📝 tr:
📝 vi:
📝 zh-CN:
📝 zh-TW:
✏️ To add missing translations:
|
Added missing translations for all 17 non-English locales: 6 |
|
@roomote Please carefully review this code, do you think this commit can be merged into the main branch |
Fixed code quality issues: rewrote incomplete getGitDiff tests with proper assertions (5 -> 8 tests), fixed markdown stripping regex for language-tagged code blocks, added |
- Rewrite getGitDiff tests with proper assertions (3 new tests) - Fix markdown stripping regex to handle language-tagged code blocks - Add --no-color flag to git diff commands for clean output - Internationalize hardcoded error strings in setScmInputBoxMessage - Add no_git_extension and no_git_repo i18n keys to all locales
Related GitHub Issue
Closes: #11992
Description
This PR attempts to address Issue #11992 by adding automatic commit message generation to Roo Code.
What it does:
Key files changed:
packages/types/src/vscode.ts- AddedgenerateCommitMessagecommand IDsrc/utils/commit-message-generator.ts- Core logic for diff retrieval, AI completion, and SCM integrationsrc/activate/registerCommands.ts- Command registration with profile picker and progress notificationsrc/package.json- Command contribution and SCM title menu entrysrc/package.nls.json- i18n string for the command titlesrc/i18n/locales/en/common.json- i18n strings for UI messagessrc/utils/__tests__/commit-message-generator.spec.ts- Unit testsTest Procedure
cd src && npx vitest run utils/__tests__/commit-message-generator.spec.ts(5 tests pass)Pre-Submission Checklist
Documentation Updates
Additional Notes
Feedback and guidance are welcome.
Interactively review PR in Roo Code Cloud