Repository navigation
feat: add --resume, lazy imports and unit tests for the remaining modules - #13
Merged
Merged
Conversation
Commits now end with "Prepared and Committed By: 🚀 CommitRocket (<repo>)", never duplicated. Add --no-attribution (alias --ignore-attribution, or no-attribution in the config file) to skip it. Applies to batch, LFS-rules and resumed commits, and to the dry-run preview and JSON report.
Group the modules into packages and split the runner and the command line into small modules, with lazy imports throughout. Tests move to tests/unit, mirroring the source tree. The io/ notification scripts become files. Fix run_git decoding Git output with the system code page, which garbled non-ASCII file names and commit messages on Windows.
Add .gitattributes, markdownlint and Sweepito config and SUPPORT.md, update the issue config and pull request template, add build provenance to the release workflow and a mypy step to lint. Move the social preview image to brand/.
Add docs/README.md and the command line and configuration guides, update the architecture and development docs, move reference detail out of the README, add mypy and bump the version to 0.1.3.
The run journal is now .git/commitrocket-journal.jsonl, an append-only event log holding every run parameter plus progress (staged, committed, pushed). It lives in .git so it is never tracked. --resume reuses the stored parameters; explicitly passed values must match or the command errors. A plain re-run continues the run when parameters match and starts a new run when they differ. Missing, damaged or incompatible journals, a different branch/target and a changed history give clear errors. The journal is deleted when a run finishes.
Move pathlib, json, os and sibling-module imports into the functions that use them, so importing a module loads only what it needs.
Cover the cli, core/runner, git/push, io/ui and support/errors modules, merge the push tests into one file and run pytest with importlib import mode so test files in different folders can share a name.
coldsofttech
force-pushed
the
feat/attribution-and-resume
branch
from
November 14, 2026 20:57
02c2884 to
5c07886
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--resume, which continues an interrupted run using the settings it started with. Repeating a setting is fine if the value is the same; a different value is an error. A plain re-run with the same settings also continues, and one with different settings starts a new run..git/commitrocket-journal.jsonl, an append-only event log of the run's parameters and progress that is deleted when the run finishes.cli,core/runner,git/push,io/ui,support/errors) and run pytest with importlib import mode so test files in different folders can share a name.--resumein the README and the command line guide, refresh the architecture notes, and update the 0.1.3 changelog.Test plan
pytest tests/unit(288 passed, 2 skipped)pytest -m integration), not re-run after the lazy import changesCloses #6, closes #7, closes #8.