Skip to content

Conversation

@chrisghill
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

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 adds artifacts templating support to the mass bundle new command, allowing users to specify output artifacts that a bundle will produce. This mirrors the existing connections functionality (which defines inputs).

  • Added Artifacts field to TemplateData struct with corresponding Artifact type
  • Renamed connection-related validation functions to use "link" terminology (more generic naming)
  • Added getArtifacts() prompt function and --artifacts CLI flag for non-interactive mode
  • Fixed unused variable in test code

Reviewed changes

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

Show a summary per file
File Description
pkg/templatecache/template_cache.go Added Artifacts field to TemplateData and defined new Artifact struct matching the Connection struct pattern
pkg/bundle/prompt.go Renamed connNameValidatelinkNameValidate and related variables; added getArtifacts() function for prompting users about output artifacts
pkg/bundle/prompt_test.go Updated test function names from TestConnNameValidateTestLinkNameValidate to match renamed function
pkg/bundle/publish_test.go Fixed unused variable warning by removing blank identifier in range loop
cmd/bundle.go Added --artifacts flag and parsing logic to support non-interactive artifact specification
docs/generated/mass_bundle_new.md Added documentation for new --artifacts flag

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

3 participants