[bluez/action-ci] db1a03: cleanup_pr: fix TypeError comparing naive and awar...

From: Luiz Augusto von Dentz <hidden>
Date: 2026-09-10 15:28:35

  Branch: refs/heads/main
  Home:   https://github.com/bluez/action-ci
  Commit: db1a034cad6b02bf0883cad7bc783fc2d4d7e012
      https://github.com/bluez/action-ci/commit/db1a034cad6b02bf0883cad7bc783fc2d4d7e012
  Author: Luiz Augusto von Dentz [off-list ref]
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M cleanup_pr.py

  Log Message:
  -----------
  cleanup_pr: fix TypeError comparing naive and aware datetimes

PyGithub returns timezone-aware (UTC) datetimes for pr.created_at, which
cannot be subtracted from the naive datetime.now(), causing:

  TypeError: can't subtract offset-naive and offset-aware datetimes

Use datetime.now(timezone.utc) and normalize pr.created_at in case an
older PyGithub returns a naive datetime.



To unsubscribe from these emails, change your notification settings at https://github.com/bluez/action-ci/settings/notifications
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help