Skip to content

Ironing out the kinks - #89

Open
UnstoppableMango wants to merge 2 commits into
mainfrom
buncha-fixes
Open

Ironing out the kinks#89
UnstoppableMango wants to merge 2 commits into
mainfrom
buncha-fixes

Conversation

@UnstoppableMango

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 25, 2026 06:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines the Renovate schema pipeline by regenerating the Go schema types with more specific (non-interface{}) structures and by shifting tooling assumptions toward the Nix flake development environment.

Changes:

  • Regenerated pkg/renovate/zz_generated.schema.go to use typed element structs/enums (e.g., ConfigCustomManagersElem) instead of interface{}/raw pointers in multiple places.
  • Updated schema tests to use the new generated types for customManagers marshalling.
  • Adjusted schema-generation tooling: Makefile now expects go-jsonschema and jq to be available externally (and adds them to flake.nix devShell), plus a more robust jq filter script.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/renovate/zz_generated.schema.go Regenerated schema models with more specific Go types and new helper type definitions.
pkg/renovate/schema_test.go Updated test to construct CustomManagers using new generated element types/enums.
Makefile Stops auto-building/downloading jq/go-jsonschema binaries; uses PATH tools instead for schema generation.
hack/renovate/delete-refs.jq Replaces direct del expression with a walk-based filter to remove $ref == "#" under any properties.
flake.nix Adds go-jsonschema and jq to the devShell inputs to support Makefile targets.
.versions/jq Removes pinned jq version file.
.versions/go-jsonschema Removes pinned go-jsonschema version file.
.gitignore Ignores .claude/*.
Files not reviewed (1)
  • pkg/renovate/zz_generated.schema.go: Generated file
Comments suppressed due to low confidence (1)

Makefile:68

  • This jq-based schema rewrite rule no longer pulls/builds jq as a Makefile prerequisite, so it will fail on environments where jq isn't installed. Consider adding a preflight check so users get a clear error message (and an obvious remediation) instead of a generic "command not found".
.make/renovate-schema.json: .make/renovate-schema.orig.json hack/renovate/*.jq
	cat $< | $(JQ) -f hack/renovate/delete-refs.jq > $@

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile
Comment on lines +47 to 49
pkg/renovate/zz_generated.schema.go: .make/renovate-schema.json
mkdir -p $(dir $@)
$(JSON2GO) --package renovate $< --only-models | sed s/RenovateSchemaJson/Config/g > $@
Comment on lines +1 to +7
walk(
if type == "object" and has("properties") then
.properties |= with_entries(select(.value["$ref"] != "#"))
else
.
end
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants