← Back to issue list

Add promote subcommand

View original Github issue

Metadata

Project
charmcraft
Number
#836
Type
issue
State
closed
Author
morphis
Labels
—
Created
Updated
Closed

Current evaluation

Added charmcraft promote for Charmhub channel-to-channel promotion in merged PR #2082 (commit 6d54238a), released in Charmcraft 3.4.

Resolution: closed resolved

Reason: PR #2082 was merged with commit 6d54238a, implementing promotion of a charm and its resources between Charmhub channels. Charmcraft 3.4 release notes confirm the command shipped in version 3.4.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Snapcraft has the very handy `promote` subcommand which allows to promote the revision which is in a particular channel to another one, e.g. for snaps we can do snapcraft promote ams --from-channel=1.15/candidate --to-channel=1.15/stable to promote what is currently in the `1.15/candidate` channel to `1.15/stable` without having to manually figure out the exact revision and handing it to `charmcraft release --revision=...`. It would be nice if charmcraft can add a `promote` subcommand to make this more convenient.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Added charmcraft promote for Charmhub channel-to-channel promotion in merged PR #2082 (commit 6d54238a), released in Charmcraft 3.4.
stealth/space-bunny-alpha — closed resolved Requested `charmcraft promote` for channel-to-channel Charmhub promotion. Implemented via merged PR #2082 (commit 6d54238a) and released in Charmcraft 3.4; docs added in #2182, promote-bundle deprecated in #2226.
stealth/space-bunny-alpha — closed resolved Added Charmcraft's promote command for channel-to-channel Store promotion in merged PR #2082 (commit 6d54238a), released in Charmcraft 3.4.
stealth/space-bunny-alpha — closed resolved Added channel-to-channel Store promotion with charmcraft promote; merged in canonical/charmcraft#2082 (commit 6d54238a) and released in Charmcraft 3.4.
stealth/space-bunny-alpha — closed resolved Feature request for a `promote` subcommand (snapcraft-style channel-to-channel promotion) was implemented: commit 6d54238a "feat(store): promote command" from merged PR #2082, shipped in Charmcraft 3.4.
stealth/space-bunny-alpha — closed resolved Added `charmcraft promote` for channel-to-channel Store promotion in merged PR #2082, commit 6d54238a, released in Charmcraft 3.4.
qwen3.6-35b-a3b-mtp-q6 — — Closed without comments or follow-up pull requests, indicating the feature request was abandoned or not implemented.
qwen/qwen3.6-35b-a3b — — Feature request for a charmcraft promote subcommand was closed without implementation or discussion. No pull request was created, and the request appears abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Feature request for a charmcraft promote subcommand was closed without implementation. No pull requests or discussions were created, indicating the request was abandoned.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#2082 (confidence 100%)

    Merged implementation of the promote command at commit 6d54238a.

  • Related To: canonical/charmcraft#1633 (confidence 95%)

    A duplicate feature request for charmcraft promote, also resolved by PR #2082.

  • Related To: canonical/charmcraft#2182 (confidence 95%)

    Merged follow-up documentation for charmcraft promote at commit 9cc71436.

Related issues

Issue Project State Summary Similarity
#1633 `charmcraft promote` command charmcraft closed Added charmcraft promote in merged PR #2082 (commit 6d54238a), released in Charmcraft 3.4; promotion to less-stable channels is blocked.
89%
#2082 feat(store): promote command charmcraft merged Merged PR #2082 added Charmcraft channel promotion with safeguards against less-stable targets; it fixed #1633 and shipped in Charmcraft 3.4.
76%
#2103 Update the revision management how-to to use the `charmcraft promote` command charmcraft closed PR #2182 (commit 9cc71436) made charmcraft promote the primary revision-promotion method while retaining charming-actions guidance for CI workflows.
74%
#2226 feat: mark the "promote-bundle" command as deprecated charmcraft merged Merged #2226 in commit 00815ec4, deprecating promote-bundle; the command remains in Charmcraft 3 and is slated for removal in 4.0.
70%
#2182 docs: add mention of `charmcraft promote` to manage-revisions.rst charmcraft merged Merged in canonical/charmcraft#2182 (9cc71436), documenting charmcraft promote in manage-revisions.rst and fixing a broken literalinclude in charmcraft-yaml-file.rst.
70%