From 92e9182858ecc7abc3eb21cc5db758e6084c5571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinclert=20P=C3=A9rez?= Date: Fri, 24 Jul 2026 16:38:01 +0200 Subject: [PATCH 1/2] Fix promote-snaps missing LT --- .../craft_tools/promote_snaps.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_cli/data_platform_workflows_cli/craft_tools/promote_snaps.py b/_cli/data_platform_workflows_cli/craft_tools/promote_snaps.py index 75339ec5..b737458c 100644 --- a/_cli/data_platform_workflows_cli/craft_tools/promote_snaps.py +++ b/_cli/data_platform_workflows_cli/craft_tools/promote_snaps.py @@ -41,6 +41,12 @@ def get(cls, value, *, direction: Direction): # Cannot override __call__ or __n ) return cls(value) + def __lt__(self, other): + if not isinstance(other, Risk): + raise TypeError + order = list(Risk) + return order.index(self) < order.index(other) + def get_snap_revisions(channel_name: str, snap_name: str, tag_prefix: str, raise_missing: bool): """Get the current snap revisions in the target channel.""" From 8446761839333d511951700a951680f6c40083df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinclert=20P=C3=A9rez?= Date: Fri, 24 Jul 2026 16:38:12 +0200 Subject: [PATCH 2/2] Add promote-snaps to README file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 63bcc52c..10dd6c1d 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ | [_promote_charms.yaml](.github/workflows/_promote_charms.md) | **Experimental** Promote charms by revision & generate release notes | | [_promote_charm_legacy_1.yaml](.github/workflows/_promote_charm_legacy_1.md) | **Deprecated** `charmcraft promote` & generate release notes for charm without refresh compatibility version tags | | [_promote_charms_legacy_2.yaml](.github/workflows/_promote_charms_legacy_2.md) | **Deprecated** `charmcraft promote` & generate release notes | +| [_promote_snaps.yaml](.github/workflows/_promote_snaps.md) | **Experimental** `snapcraft promote` & generate release notes | | [check_charm_pr.yaml](.github/workflows/check_charm_pr.md) | Check charm pull request has required labels for release notes | | [approve_renovate_pr.yaml](.github/workflows/approve_renovate_pr.md) | Reduce required approvals on [Renovate](https://docs.renovatebot.com/) pull requests by 1 | | [_update_bundle.yaml](.github/workflows/_update_bundle.md) | **Experimental** Update charm revisions in bundle | @@ -71,4 +72,3 @@ Workflows that begin with two underscores (e.g. `__foo.yaml`) are for this repos Data Platform Workflows is covered by the [Ubuntu Code of Conduct](https://ubuntu.com/community/ethos/code-of-conduct). -