update artifact pull/create to use payload#204
Merged
chrisghill merged 2 commits intomainfrom Jan 28, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors artifact creation and retrieval to use a unified payload field instead of separate data and specs fields, simplifying the artifact data model and aligning with API changes.
Changes:
- Simplified artifact type from a struct with separate Data/Specs fields to a simple map[string]any
- Updated GraphQL queries to use
payloadparameter instead ofartifactDataandartifactSpecs - Updated CreateArtifact API to accept a single payload parameter
- Modified tests and templates to reference
Payloadinstead ofSpecs
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pkg/artifact/types.go | Changed Artifact type from struct with Data/Specs fields to simple map[string]any |
| pkg/api/genqlient.graphql | Updated createArtifact mutation to use artifactPayload parameter |
| pkg/api/zz_generated.go | Regenerated code reflecting the new payload-based API |
| pkg/api/artifact.go | Updated CreateArtifact function signature to accept single payload parameter |
| pkg/commands/artifact/import.go | Updated to pass artifact as payload to CreateArtifact |
| pkg/api/artifact_test.go | Updated tests to use Payload field and moved TestCreateArtifact from deleted artifacts_test.go |
| pkg/api/artifacts_test.go | Deleted file - test was moved to artifact_test.go |
| cmd/templates/artifact.get.md.tmpl | Updated template to display Payload instead of Specs |
| cmd/artifact.go | Updated rendering logic to format Payload field |
| pkg/api/schema.graphql | Updated schema with new payload field and backward-compatible deprecated specs/data fields |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
coryodaniel
approved these changes
Jan 19, 2026
Member
|
Are you blocked on this? |
Member
Author
No, I think this is ready to ship. |
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.
No description provided.