refactor: extract OCI artifact contract into shared spec - #298
Conversation
Define media types, annotation keys, and referrer types in a single JSON contract file (internal/common/oci/spec.json) consumed by Go via //go:embed and by shell scripts via generated variables. Assisted-by: claude-opus-4.6 Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
📝 WalkthroughWalkthroughThis PR centralizes OCI artifact specification—annotation keys, media types, and referrer types—behind a new ChangesOCI Specification Centralization
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
internal/common/oci/spec.json) consumed by Go via//go:embedand by shell scripts via exported variablesspec.jsondirectly to produce compatible OCI artifactsReplaces #295 (accidentally closed).
Assisted-by: claude-opus-4.6
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
Tests