From 8854d7ad848af4a2bc1d0c85a3a0c2fd91f461da Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 16:38:33 +0000 Subject: [PATCH 1/2] chore(deps): bump rubocop from 1.91.0 to 1.92.0 Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.91.0 to 1.92.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.91.0...v1.92.0) --- updated-dependencies: - dependency-name: rubocop dependency-version: 1.92.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index c92d794..21434ed 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -64,7 +64,7 @@ GEM herb (0.11.0-x86_64-linux-musl) i18n (1.15.2) concurrent-ruby (~> 1.0) - json (3.0.2) + json (3.1.0) language_server-protocol (3.17.0.6) lint_roller (1.1.0) logger (1.7.0) @@ -105,15 +105,15 @@ GEM loofah (~> 2.25, >= 2.25.2) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) rainbow (3.1.1) - regexp_parser (2.13.0) - rubocop (1.91.0) + regexp_parser (2.13.1) + rubocop (1.92.0) json (>= 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) parallel (>= 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 2.9.3, < 3.0) + regexp_parser (>= 2.11.3, < 3.0) rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) From 40be9c295c7d13385eb6359853df3f5297f57d0c Mon Sep 17 00:00:00 2001 From: Yuriy Kirillov Date: Fri, 23 Oct 2026 16:38:26 +0200 Subject: [PATCH 2/2] fix: use datetime.UTC alias for ruff UP017 Co-Authored-By: Claude Opus 5.5 --- .github/actions/prepare-telegram-pr-message/prepare.py | 4 ++-- test/test_telegram_notifications.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/prepare-telegram-pr-message/prepare.py b/.github/actions/prepare-telegram-pr-message/prepare.py index 5ffd9de..2a9a1eb 100644 --- a/.github/actions/prepare-telegram-pr-message/prepare.py +++ b/.github/actions/prepare-telegram-pr-message/prepare.py @@ -3,7 +3,7 @@ import os import subprocess import uuid -from datetime import datetime, timezone +from datetime import UTC, datetime DIGEST_PR_LIMIT = 10 MARKDOWN_V2_SPECIAL_CHARACTERS = frozenset("_*[]()~`>#+-=|{}.!\\") @@ -64,7 +64,7 @@ def format_digest(repository, pull_requests, now=None): if not pull_requests: return "" - now = now or datetime.now(timezone.utc) + now = now or datetime.now(UTC) count = len(pull_requests) header = f"*{escape_markdown(repository)}* • {count} open {'PR' if count == 1 else 'PRs'}" lines = [] diff --git a/test/test_telegram_notifications.py b/test/test_telegram_notifications.py index 0baccad..a27f6fd 100644 --- a/test/test_telegram_notifications.py +++ b/test/test_telegram_notifications.py @@ -2,7 +2,7 @@ import os import tempfile import unittest -from datetime import datetime, timezone +from datetime import UTC, datetime from pathlib import Path from unittest.mock import patch @@ -75,7 +75,7 @@ def test_open_pull_request_digest_excludes_drafts_and_reports_age(self): message = PR_TELEGRAM.format_digest( "owner/repo", [draft, self.pull_request | {"createdAt": "2026-08-10T12:00:00Z"}], - now=datetime(2026, 8, 12, 12, tzinfo=timezone.utc), + now=datetime(2026, 8, 12, 12, tzinfo=UTC), ) self.assertIn("1 open PR", message)