Fix broken links in processed notes

This commit is contained in:
Álison Fernandes 2025-11-27 22:55:06 +00:00
parent 8c9d5e5e00
commit 3b6625232b
No known key found for this signature in database
GPG Key ID: B8CE98903DFC87BC
2 changed files with 2 additions and 2 deletions

View File

@ -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): -> ""

View File

@ -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"),