harbor run -t openthoughts/monorepo-changelog-cliharbor download openthoughts/monorepo-changelog-cliYour task is to create a Python command-line tool that generates changelogs AND updates version numbers for a multi-package monorepo based on Git history.
The repository follows a structure where multiple packages reside in a packages/ directory (e.g., packages/utils, packages/api). Each package has a VERSION file (containing "1.0.0") and optionally a deps.txt file listing local dependencies.
changelog_gen.py in the /app directory.python3 /app/changelog_gen.py (run from repo root).HEAD. If no tag exists, scan history.packages/<name>/.type(scope): description
feat or fix.: .feat.fix.packages/<name>/deps.txt. This file lists names of other packages that <name> depends on (one per line).packages/<name>/VERSION: Overwrite with new version.packages/<name>/CHANGELOG.md:
## <NewVersion> (<YYYY-MM-DD>)- description (Grouped by ### Features / ### Bug Fixes).### Dependencies with the item - update dependencies.release-notes.md:
# Release Notes
## <package_name>
- [feat] description
- [fix] description
- [deps] update dependencies
pkg-b depends on pkg-a.fix(pkg-a): fix bug (Direct Patch on A).pkg-a bumps 1.0.1 (Direct Fix).pkg-b bumps 1.0.1 (Dependency Propagation).pkg-b/CHANGELOG.md gets entry - update dependencies under ### Dependencies.