roll_util: Escape 'Bug:' instead of filtering
Escape 'Bug:', 'Fixed:', and 'Fixes:' instead of filtering them out
completely.
Bug: b/243177456
Change-Id: I49521589b33e933ac682da7285059bf81be8d86e
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/108673
Commit-Queue: Rob Mohr <mohrr@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
diff --git a/recipe_modules/roll_util/api.py b/recipe_modules/roll_util/api.py
index f20e7e1..46fdebd 100644
--- a/recipe_modules/roll_util/api.py
+++ b/recipe_modules/roll_util/api.py
@@ -24,6 +24,9 @@
# If we're embedding the original commit message, prepend 'Original-' to lines
# which begin with these tags.
ESCAPE_TAGS = [
+ 'Bug:',
+ 'Fixed:',
+ 'Fixes:',
'Requires:',
'Reviewed-on:',
]
@@ -33,17 +36,13 @@
FILTER_TAGS = [
'API-Review:',
'Acked-by:',
- 'Auto-Submit',
re.compile(r'^\w+-?Auto-Submit:', re.IGNORECASE),
- 'Bug:',
'CC:',
'CQ-Do-Not-Cancel-Tryjobs:',
'Cq-Include-Trybots:',
'Change-Id:',
'Commit-Queue:',
'Cq-Cl-Tag:',
- 'Fixed:',
- 'Fixes:',
re.compile(r'Git[ -]?watcher:', re.IGNORECASE),
'No-Docs-Update-Reason:',
'No-Presubmit:',