feat(devgen/modules): categorize committypes and improve changelog/release note formattingAdd separate categories for Performance, Refactor, Tests, Style, and Chore; update ordering and emojis; improve remote push detection and fetch strategy; enhance error logging.
- New Features - Introduced distinct sections for Performance, Refactor, Tests, Style, and Chore in changelog generation. - Added dedicated emojis for each new category. - Updated section ordering to reflect the new categories. - Enhancements - Enhanced push logic to fetch upstream before push, avoiding non‑fast‑forward rejections. - Refactored `is_ahead_of_remote` with a fetch flag to reduce network calls and TOCTOU windows. - Improved error logging with full traceback for group processing failures. - Bug Fixes - Fixed emoji mappings for "Style" and "Other Changes". - Corrected handling of empty upstream ref to prevent errors. - Ensured proper exception handling when remote branch is missing.
This commit is contained in:
3 files changed
+81
-27
No files matched your search
@@ -12,11 +12,12 @@ class ReleaseNotesGenerator(ChangelogGenerator):
|
||||
"BREAKING CHANGES": "⚠️",
|
||||
"Features": "✨",
|
||||
"Bug Fixes": "🐛",
|
||||
"Performance": "⚡",
|
||||
"Documentation": "📚",
|
||||
"Refactor": "♻️",
|
||||
"Tests": "✅",
|
||||
"Chore": "🔧",
|
||||
"Style": "✨",
|
||||
"Style": "💄",
|
||||
"Other Changes": "🧹",
|
||||
}
|
||||
|
||||
@@ -32,7 +33,12 @@ class ReleaseNotesGenerator(ChangelogGenerator):
|
||||
"BREAKING CHANGES",
|
||||
"Features",
|
||||
"Bug Fixes",
|
||||
"Performance",
|
||||
"Documentation",
|
||||
"Refactor",
|
||||
"Tests",
|
||||
"Style",
|
||||
"Chore",
|
||||
"Other Changes",
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user