Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions hemera/cli/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def jobs_space_initialize_before_check(jobs):
namespace_generator = TemplateGenerator(
template_file=os.path.join(project_root, "hemera/resource/template/custom_api_namespace.example")
)
changelog_generator = TemplateGenerator(
template_file=os.path.join(project_root, "hemera/resource/template/changelog.example")
)

for job in jobs:
if job in exists_job:
Expand Down Expand Up @@ -109,4 +112,6 @@ def jobs_space_initialize_before_check(jobs):
namespace_generator.generate_file(target_path=os.path.join(custom_job_path, "endpoint", "__init__.py"))
empty_generator.generate_file(target_path=os.path.join(custom_job_path, "endpoint", "routes.py"))

changelog_generator.generate_file(target_path=os.path.join(custom_job_path, "CHANGELOG.md"))

logger.info(f"{job} successfully initialized.")
20 changes: 20 additions & 0 deletions hemera/resource/template/changelog.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 0.1.0
---
### Features
- feat: add function
- feat: deal with some senario

### Bug Fixes
- fix: repair data processing

### Documentation
- doc: add README.md

### Refactor
- refactor: optimize data processing flow

### Test
- test: add unit test

### Chore
- chore: add dependency