feat: resumable state manifest, --retry-failed, --sparse-checkout#40
Merged
Conversation
…kout Adds a per-repo _ghorg_state.json manifest written next to _ghorg_stats.csv that records last SHA, status, and error for each repo. New --retry-failed flag composes with the existing filter pipeline to re-attempt only previously-failed repos. New --sparse-checkout flag plumbs cone-mode patterns through the exec backend (go-git logs unsupported). HeadSHA is added to the Gitter interface so the manifest can record commit hashes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds README sections for --retry-failed and partial-clone usage, plus a backend feature matrix showing which clone modes work with go-git vs exec. Updates sample-conf.yaml with the new git.sparse-checkout and retry-failed keys and inline notes on backend support. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Updates hook revs (pre-commit-hooks v6.0.0, pre-commit-golang v1.0.0-rc.4 with -repo variants, gitleaks v8.30.1) and adds the standard header comment block. Drops detect-secrets and the .secrets.baseline file in favor of gitleaks alone. Drops golangci-lint-full from pre-commit since it runs in CI. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds .editorconfig matching the pinpredict template (2-space default, tabs for Go/Makefile, preserves trailing whitespace in markdown). Drops goreleaser from .tool-versions; it's now a go.mod tool dep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds goreleaser/v2 as a go.mod tool dep so it can be invoked via go tool goreleaser, matching the pinpredict pattern. Updates Makefile targets accordingly and drops the now-redundant deps-install and deps-verify targets. CLAUDE.md command table updated. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
_ghorg_state.jsonmanifest written next to_ghorg_stats.csvrecording last SHA, status, branch, and error per repo. New--retry-failedflag composes with the existing 7-stage filter pipeline to re-attempt only previously-failed repos. Manifest is human-readable JSON, written atomically (tmp + rename), schema-versioned for future migrations.--sparse-checkoutflag that plumbs cone-mode patterns through the exec backend (git sparse-checkout init --cone+setpost-clone). go-git logs unsupported and skips, mirroring the existing--git-filterprecedent. README gains a backend feature matrix documenting which clone modes work where.HeadSHAto theGitterinterface so the manifest can record commit hashes; both backends delegate to existingGetRefHash(repo, "HEAD")..secrets.baselinein favor of gitleaks alone, adds.editorconfig, movesgoreleaserfrom asdf into thego.modtool block (go tool goreleaser ...), drops now-redundantdeps-install/deps-verifyMakefile targets.Documentation in README.md and sample-conf.yaml describes the new
--retry-failed,--sparse-checkout, the_ghorg_state.jsonschema, and the backend feature matrix (depth/mirror = both, filter/sparse = exec only).Test plan
make fmt && make lint && make testclean across all 7 packagesmake release-checkvalidates.goreleaser.ymlviago tool goreleaserpre-commit run --all-files(orpre-commit runon staged) green with new configHeadSHAon both backends, end-to-end sparse-checkout via local bare repo._ghorg_state.jsonlists it aserror, then rerun with--retry-failedand confirm only that repo is attempted.--clone-depth=1 --sparse-checkout="docs,README.md" --git-backend=execproduces a shallow, sparse working tree.Deferred follow-ups
authconsolidation:internal/configs/configs.gohas 5 near-parallelgetOrSetXxxTokenfunctions and duplicated macOS Keychain shellouts. Sketch: introduceCredentialResolverinterface chained per provider, plus a git credential helper resolver. Separate PR.reclone-serverhardening: bearer-token auth,/metrics, structured logging, rate limit. Separate small PR.🤖 Generated with Claude Code