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

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


The following commit(s) were added to refs/heads/main by this push:
     new 628baf7  Fix mailing list API URLs
628baf7 is described below

commit 628baf78d80d13bda9764d9649b241fd34c8cbd5
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Nov 5 14:09:28 2025 +0000

    Fix mailing list API URLs
---
 atr/util.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/atr/util.py b/atr/util.py
index 00792b1..6bb4e92 100644
--- a/atr/util.py
+++ b/atr/util.py
@@ -833,7 +833,7 @@ async def task_archive_url(task_mid: str) -> str | None:
     # TODO: This List ID will be dynamic when we allow posting to arbitrary 
lists
     # lid = "user-tests.tooling.apache.org"
     lid = USER_TESTS_ADDRESS.replace("@", ".")
-    url = 
f"https://lists.apache.org/api/email.lua?id=%3C{task_mid}%3E&listid=%3C{lid}%3E";
+    url = 
f"https://lists.apache.org/api/email.json?id=%3C{task_mid}%3E&listid=%3C{lid}%3E";
     try:
         async with aiohttp.ClientSession() as session:
             async with session.get(url) as response:
@@ -854,7 +854,7 @@ async def thread_messages(
 ) -> AsyncGenerator[tuple[str, dict[str, Any]]]:
     """Iterate over mailing list thread messages in chronological order."""
 
-    thread_url = f"https://lists.apache.org/api/thread.lua?id={thread_id}";
+    thread_url = f"https://lists.apache.org/api/thread.json?id={thread_id}";
 
     try:
         async with aiohttp.ClientSession() as session:
@@ -875,7 +875,7 @@ async def thread_messages(
     if not message_ids:
         return
 
-    email_urls = [f"https://lists.apache.org/api/email.lua?id={mid}"; for mid 
in message_ids]
+    email_urls = [f"https://lists.apache.org/api/email.json?id={mid}"; for mid 
in message_ids]
 
     messages: list[dict[str, Any]] = []
 


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

Reply via email to