Skip to content

Fix release submit path resolution, PR response, and catalog search#4

Merged
daniel-garcia merged 1 commit intomainfrom
fix/release-submit-and-catalog-resolve
Apr 8, 2026
Merged

Fix release submit path resolution, PR response, and catalog search#4
daniel-garcia merged 1 commit intomainfrom
fix/release-submit-and-catalog-resolve

Conversation

@daniel-garcia
Copy link
Copy Markdown
Contributor

Summary

  • release submit: resolve source path through config.ResolveAPIPath() instead of using the bare API id, so module_roots like internal/apis/jsonschema are respected
  • pr.go: map HTMLURL to json:"html_url" (was "url", which is the API URL not the browser URL)
  • pr.go: qualify FindExistingPR head param as owner:branch so GitHub filters correctly instead of returning unrelated PRs
  • jsonschema.go: Lint() now walks directories instead of failing with "is a directory" when given a directory path
  • resolve.go: prefer local catalog/catalog.yaml when it exists on disk before attempting remote registry auto-discovery

Test plan

  • go test ./internal/publisher/... — updated fixtures for html_url and owner:branch
  • go test ./internal/validator/... — existing JSON Schema tests pass
  • go test ./... — all unit/integration/testscript tests pass (only e2e skipped, needs K3d)
  • TestScript/catalog_pipeline, external_version, external_search, show, search_catalog, external_dep all pass

…search

- release submit: resolve source path through config.ResolveAPIPath()
  instead of using the bare API id, so module_roots like
  internal/apis/jsonschema are respected
- pr.go: map HTMLURL to json:"html_url" (was "url", which is the API
  URL not the browser URL)
- pr.go: qualify FindExistingPR head param as owner:branch so GitHub
  filters correctly instead of returning unrelated PRs
- jsonschema.go: Lint() now walks directories instead of failing with
  "is a directory" when given a directory path
- resolve.go: prefer local catalog/catalog.yaml when it exists on disk
  before attempting remote registry auto-discovery
- Fix test fixtures and expectations to match corrected behavior
@daniel-garcia daniel-garcia merged commit 425bb08 into main Apr 8, 2026
7 of 8 checks passed
@daniel-garcia daniel-garcia deleted the fix/release-submit-and-catalog-resolve branch April 8, 2026 21:01
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.

1 participant