feat: add v2 config schema validation#20
Merged
Conversation
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.
Description
Closes #2.
Adds the v2
.pushgate.ymlconfig contract and a typed config loader so Pushgate can validate and normalize project config before later deterministic runner and AI provider layers consume it.This replaces ad hoc YAML parsing assumptions with a versioned schema, actionable validation errors, explicit legacy-file handling, and a config shape that can safely support nested provider settings and argv-based tool commands.
Type of change
fix:- Bug fix (patch version bump)feat:- New feature (minor version bump)feat!:/fix!:- Breaking change (major version bump)docs:- Documentation only (no version bump)chore:- Maintenance or config (no version bump)refactor:- Code restructure, no behaviour change (no version bump)Changes made
.pushgate.yml..push-review.ymlrepos, including legacy-only failures and coexistence warnings.version: 2, nestedai.providersconfig, argv-array tool commands, and review prompt defaults outside the config surface.Testing
pnpm install --frozen-lockfilepnpm buildpnpm testbash -n hook/pre-pushpasses with no outputbash -n install.shpasses with no outputChecklist
eval, heredoc variable expansion, or unquoted variable interpolation in shell scriptsVERSION,CHANGELOG.md,.release-please-manifest.json, andrelease-please-config.jsonwere not manually edited - these are managed by release-pleaseREADME.md(not applicable)install.shusage comment (not applicable)Screenshots / output
N/A. This PR adds the v2 config contract, validation layer, docs, templates, and automated coverage.