Repository navigation
Commit 6c0b5e9
authored
feat: add --resume, lazy imports and unit tests for the remaining modules (#13)
* feat: append CommitRocket attribution to commit messages
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.
* refactor: split the package into core, git, io, support and cli
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.
* chore: align repository files with BatchVault
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/.
* docs: add guides, trim the README and release 0.1.3
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.
* feat: add --resume backed by a .git run journal
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.
* refactor: import lazily in git, io and support modules
Move pathlib, json, os and sibling-module imports into the functions that use them, so importing a module loads only what it needs.
* test: add unit tests for the remaining modules
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.
* docs: document --resume in the guides and refresh the architecture notes1 parent 151afb7 commit 6c0b5e9
96 files changed
Lines changed: 5287 additions & 2001 deletions
File tree
- .github
- ISSUE_TEMPLATE
- workflows
- brand
- docs
- guides
- src/commitrocket
- cli
- core
- runner
- git
- io
- scripts
- support
- tests
- integration
- unit
- cli
- core
- runner
- git
- io
- support
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
11 | | - | |
12 | | - | |
| 7 | + | |
| 8 | + | |
13 | 9 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 10 | + | |
| 11 | + | |
17 | 12 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
6 | 14 | | |
7 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments