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-release.git


The following commit(s) were added to refs/heads/main by this push:
     new ba2646a  Fix a PAT query bug
ba2646a is described below

commit ba2646ac4d6000680b3d5fe349bb6db37b00a10c
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Sep 9 14:13:27 2025 +0100

    Fix a PAT query bug
---
 atr/storage/readers/tokens.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/atr/storage/readers/tokens.py b/atr/storage/readers/tokens.py
index a8b8239..a7fcba2 100644
--- a/atr/storage/readers/tokens.py
+++ b/atr/storage/readers/tokens.py
@@ -50,5 +50,6 @@ class FoundationCommitter(GeneralPublic):
             .where(sql.PersonalAccessToken.asfuid == asf_uid)
             .where(via(sql.PersonalAccessToken.last_used).is_not(None))
             .order_by(via(sql.PersonalAccessToken.last_used).desc())
+            .limit(1)
         )
         return await self.__data.query_one_or_none(stmt)


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

Reply via email to