From 3b6625232bef3ecf5da57f6cc15172119f02bdee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lison=20Fernandes?= Date: Thu, 27 Nov 2025 22:55:06 +0000 Subject: [PATCH] Fix broken links in processed notes --- .github/scripts/release-notes/process_release_notes.py | 2 +- .github/scripts/release-notes/test_process_release_notes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/release-notes/process_release_notes.py b/.github/scripts/release-notes/process_release_notes.py index 5b929acccf..d951c38d3e 100644 --- a/.github/scripts/release-notes/process_release_notes.py +++ b/.github/scripts/release-notes/process_release_notes.py @@ -111,7 +111,7 @@ def process_line(line: str) -> str: patterns = [ r'🍒', # 🍒 -> "" r'BACKPORT', # BACKPORT -> "" - r'[deps]:', # [deps]: -> "" + r'\[deps\]:', # [deps]: -> "" r'feat(?:\([^)]*\))?:', # feat: or feat(ui): -> "" r'bug(?:\([^)]*\))?:', # bug: or bug(core): -> "" r'ci(?:\([^)]*\))?:' # ci: or ci(workflow): -> "" diff --git a/.github/scripts/release-notes/test_process_release_notes.py b/.github/scripts/release-notes/test_process_release_notes.py index a0523a97c4..d3f6c77fe1 100644 --- a/.github/scripts/release-notes/test_process_release_notes.py +++ b/.github/scripts/release-notes/test_process_release_notes.py @@ -37,7 +37,7 @@ class TestProcessReleaseNotes(unittest.TestCase): def test_process_line(self): test_cases = [ - ("* [ABC-123] BACKPORT Some text", "* Some text"), + ("* [ABC-123] BACKPORT Some text by @bw-ghapp[bot] in https://github.com/bitwarden/android/pull/6042", "* Some text by @bw-ghapp[bot] in https://github.com/bitwarden/android/pull/6042"), ("* DEF-456: feat(component): Some text", "* Some text"), ("* GHI-789 - bug(fix): Some text", "* Some text"), ("* ci: Some text", "* Some text"),