mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 09:56:45 -06:00
Fix broken links in processed notes
This commit is contained in:
parent
8c9d5e5e00
commit
3b6625232b
@ -111,7 +111,7 @@ def process_line(line: str) -> str:
|
|||||||
patterns = [
|
patterns = [
|
||||||
r'🍒', # 🍒 -> ""
|
r'🍒', # 🍒 -> ""
|
||||||
r'BACKPORT', # BACKPORT -> ""
|
r'BACKPORT', # BACKPORT -> ""
|
||||||
r'[deps]:', # [deps]: -> ""
|
r'\[deps\]:', # [deps]: -> ""
|
||||||
r'feat(?:\([^)]*\))?:', # feat: or feat(ui): -> ""
|
r'feat(?:\([^)]*\))?:', # feat: or feat(ui): -> ""
|
||||||
r'bug(?:\([^)]*\))?:', # bug: or bug(core): -> ""
|
r'bug(?:\([^)]*\))?:', # bug: or bug(core): -> ""
|
||||||
r'ci(?:\([^)]*\))?:' # ci: or ci(workflow): -> ""
|
r'ci(?:\([^)]*\))?:' # ci: or ci(workflow): -> ""
|
||||||
|
|||||||
@ -37,7 +37,7 @@ class TestProcessReleaseNotes(unittest.TestCase):
|
|||||||
|
|
||||||
def test_process_line(self):
|
def test_process_line(self):
|
||||||
test_cases = [
|
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"),
|
("* DEF-456: feat(component): Some text", "* Some text"),
|
||||||
("* GHI-789 - bug(fix): Some text", "* Some text"),
|
("* GHI-789 - bug(fix): Some text", "* Some text"),
|
||||||
("* ci: Some text", "* Some text"),
|
("* ci: Some text", "* Some text"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user