This is an automated email from the ASF dual-hosted git repository.

arm pushed a commit to branch gha-distributions
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/gha-distributions by this push:
     new e518430  Add warning in to make sure early adopters know they auto 
distribution doesn't work
e518430 is described below

commit e518430d5b4c5972d8fbfa51a570ee9440b3a743
Author: Alastair McFarlane <[email protected]>
AuthorDate: Mon Jan 12 14:09:35 2026 +0000

    Add warning in to make sure early adopters know they auto distribution 
doesn't work
---
 atr/get/finish.py                 | 12 ++++++++++++
 atr/templates/check-selected.html |  4 ++++
 2 files changed, 16 insertions(+)

diff --git a/atr/get/finish.py b/atr/get/finish.py
index fa00262..3526853 100644
--- a/atr/get/finish.py
+++ b/atr/get/finish.py
@@ -295,6 +295,7 @@ async def _render_page(
     if len(distribution_tasks) > 0:
         page.append(_render_distribution_tasks(release, distribution_tasks))
 
+    page.append(_render_dist_warning())
     page.append(_render_distribution_buttons(release))
 
     # Move files section
@@ -522,6 +523,17 @@ def _render_distribution_tasks(release: sql.Release, 
tasks: Sequence[sql.Task])
     return block.collect()
 
 
+def _render_dist_warning() -> htm.Element:
+    """Render the alert about distribution tools."""
+    return htm.div(".alert.alert-warning.mb-4", role="alert")[
+        htm.p(".fw-semibold.mb-1")["NOTE:"],
+        htm.p(".mb-1")[
+            "Tools to distribute automatically are still being developed, "
+            "you must do this manually at present. Please use the manual 
record function below to do so.",
+        ],
+    ]
+
+
 def _render_task(task: sql.Task) -> htm.Element:
     """Render a distribution task's details."""
     args: gha.DistributionWorkflow = 
gha.DistributionWorkflow.model_validate(task.task_args)
diff --git a/atr/templates/check-selected.html 
b/atr/templates/check-selected.html
index 36f65fa..77b793d 100644
--- a/atr/templates/check-selected.html
+++ b/atr/templates/check-selected.html
@@ -129,6 +129,10 @@
     <p>
       While this release is in draft, you can create a staging distribution. 
Use the buttons below to either create one automatically (where supported) or 
record a manual distribution performed outside of ATR.
     </p>
+    <div class="alert alert-warning mb-4">
+      <p class="fw-semibold mb-1">NOTE:</p>
+      <p>At present, automated distributions are being developed. Please use 
the manual record button if you need to record a distribution.</p>
+    </div>
     <p>
       <a class="btn btn-primary"
          href="{{ as_url(get.distribution.stage_automate, 
project=release.project.name, version=release.version) }}">Distribute</a>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to