Repository navigation
fix: address PR #670 review nit batch - #772
Merged
Merged
Conversation
…d commit Render the dry-run command from the real CMD array via printf '%q' instead of a hand-maintained duplicate string, and only auto-create the initial scaffold commit when the target was empty so a pre-populated directory is not swept into a misleading commit. Refs: #759
…l handling - version-check.sh: fix help text 'And (days)' -> 'Nd (days)' - init.sh: clarify pre-commit 'install-hooks' only installs hook environments - release.yml: treat a cancelled required job as not-green (roll back) Refs: #759
This was referenced Jun 30, 2026
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
Batch of trivial review nits from the PR #670 review (parent #625). Closes #759.
Per-item outcome:
version-check.shhelp typoassets/workspace/.devcontainer/scripts/version-check.shAnd (days)→Nd (days)(3 occurrences: comment + 2 help echoes);Ndallowlisted in.typos.tomlinit.shmisleading messagescripts/init.shPre-commit hooks installed→Pre-commit hook environments installed(and matching warning);install-hooksonly installs hook envsexcept A, B:tests/conftest.py,packages/vig-utils/tests/test_claude_ssot.pyrequires-python >=3.14, rufftarget-version = py314); under PEP 758except A, B:is valid andruff formatremoves the parens. Parenthesizing would fail theruff-formatCI check. The unparenthesized form already ships on the base branch.release.ymlcancel handling.github/workflows/release.ymlrollbackjob now treats acancelledrequired job as not-green (rolls back like a failure), viacontains(fromJSON('["failure","cancelled"]'), needs.<job>.result)install.shdry-runinstall.shCMDarray viaprintf '%q'(no hand-maintained duplicate string), so the shown command matches what executesinstall.shscaffold guardinstall.shTARGET_WAS_EMPTYflag captured before the container scaffolds; the autoinitial project scaffoldcommit only runs for a freshly-scaffolded empty target, never sweeping a pre-populated directoryTests (TDD)
tests/bats/install.bats: updated dry-run assertions to the%q-derived format, added a guard test (TARGET_WAS_EMPTY) and a derive-from-CMD test (printf '%q'). Committed RED before theinstall.shfix, then GREEN.tests/test_install_script.py: synced the dry-run name-sanitization assertion to the%q(unquoted) output.Verification
bats tests/bats/install.bats— 55/55 passshellcheck install.sh version-check.sh init.sh— cleanactionlint/yamllintonrelease.yml— expression accepted; no new findings (pre-existing shellcheck warnings in unrelatedrun:blocks untouched)ruff format --check/pre-commiton all changed files — passPYTHONPATH= uv run pytest packages/vig-utils/tests/test_claude_ssot.py tests/test_utils.pyand the dry-run install test — passNote: 3
test_image.pytestinfra failures observed locally are pre-existing/environmental (run against a stale prebuiltpodman://image) and unrelated to these text-only changes.Closes #759