Skip to content

feat(config): rename publish channel field to publish-channel and PublishChannel#96

Merged
reubeno merged 2 commits intomicrosoft:mainfrom
liunan-ms:liunan/publish-channel
Apr 16, 2026
Merged

feat(config): rename publish channel field to publish-channel and PublishChannel#96
reubeno merged 2 commits intomicrosoft:mainfrom
liunan-ms:liunan/publish-channel

Conversation

@liunan-ms
Copy link
Copy Markdown
Contributor

@liunan-ms liunan-ms commented Apr 14, 2026

This pull request changes the naming of the publish channel field from channel to publish-channel in JSON and table output:

  • azldev package list: JSON key channel -> publishChannel,
    table header CHANNEL -> PUBLISH CHANNEL
  • azldev component build: JSON key channel -> publishChannel,
    table header Channel -> Publish Channel (per-RPM result);
    table header Channels -> Publish Channels (per-component summary)
  • Update inspect-package-config.md doc examples to match
image

Copilot AI review requested due to automatic review settings April 14, 2026 21:43
Copy link
Copy Markdown
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

Note

Copilot was unable to run its full agentic suite in this review.

This PR standardizes the “publish channel” naming across the config model, CLI JSON outputs, generated schema, tests, and user docs by renaming the field from channel to publishChannel / PublishChannel, and the TOML key to publish-channel.

Changes:

  • Renames the Go config field to PublishChannel and updates TOML/JSON tags accordingly.
  • Updates CLI result structs and JSON payload fields from channel to publishChannel.
  • Updates generated JSON schema/snapshots and documentation examples to use publish-channel in TOML.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
schemas/azldev.schema.json Renames schema property/title for the publish channel field.
scenario/snapshots/TestSnapshots_config_generate-schema_stdout_1.snap Updates schema snapshot to match renamed property/title.
scenario/snapshots/TestSnapshotsContainer_config_generate-schema_stdout_1.snap Updates container schema snapshot to match renamed property/title.
internal/projectconfig/package.go Renames config struct field and updates TOML/JSON/schema tags.
internal/projectconfig/package_test.go Updates unit tests for renamed field and validator message expectations.
internal/projectconfig/loader_test.go Updates TOML parsing tests to the new publish-channel key and field name.
internal/app/azldev/cmds/pkg/list.go Renames CLI list result field and JSON/table output naming.
internal/app/azldev/cmds/pkg/list_test.go Updates CLI list tests for renamed result field.
internal/app/azldev/cmds/component/build.go Renames RPM publish-channel field used in build results and move logic.
internal/app/azldev/cmds/component/build_test.go Updates build tests for renamed RPM result field.
docs/user/reference/config/project.md Updates TOML examples to publish-channel.
docs/user/reference/config/package-groups.md Updates TOML key in docs (table + examples) to publish-channel.
docs/user/reference/config/components.md Updates TOML examples to publish-channel.
docs/user/how-to/inspect-package-config.md Updates JSON output example key to publishChannel.

Comment thread internal/projectconfig/package.go Outdated
Comment thread schemas/azldev.schema.json Outdated
Comment thread docs/user/reference/config/package-groups.md Outdated
Comment thread internal/app/azldev/cmds/pkg/list.go Outdated
// Currently only publish settings are supported; additional fields may be added in the future.
type PackageConfig struct {
// Publish holds the publish settings for this package.
Publish PackagePublishConfig `toml:"publish,omitempty" json:"publish,omitempty" jsonschema:"title=Publish settings,description=Publishing settings for this binary package" fingerprint:"-"`
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.

Fingerprint is ignored here, so identity should be good.

- azldev package list: JSON key 'channel' -> 'publishChannel',
  table header 'CHANNEL' -> 'PUBLISH CHANNEL'
- azldev component build: JSON key 'channel' -> 'publishChannel',
  table header 'Channel' -> 'Publish Channel' (per-RPM result);
  table header 'Channels' -> 'Publish Channels' (per-component summary)
- Update inspect-package-config.md doc examples to match
@liunan-ms liunan-ms force-pushed the liunan/publish-channel branch from 7a558c5 to 663f723 Compare April 15, 2026 19:49
Copilot AI review requested due to automatic review settings April 15, 2026 19:49
Copy link
Copy Markdown
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

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

Comment thread internal/app/azldev/cmds/component/build.go
Comment thread docs/user/how-to/inspect-package-config.md Outdated
@reubeno reubeno merged commit 344e4e9 into microsoft:main Apr 16, 2026
15 checks passed
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.

4 participants