Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Unified Diff: infra/services/bugdroid/log_parser.py

Issue 2030003003: Make new bugdroid recognize git footer Bug: 123. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: add no cover Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | infra/services/bugdroid/test/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/services/bugdroid/log_parser.py
diff --git a/infra/services/bugdroid/log_parser.py b/infra/services/bugdroid/log_parser.py
index 5d5c7328a5bcbc05fd9a8aa5b96ea40af17a4b78..85588606444106d5623ca0ccf1b1f5eafc7cfe30 100644
--- a/infra/services/bugdroid/log_parser.py
+++ b/infra/services/bugdroid/log_parser.py
@@ -9,7 +9,7 @@ from collections import defaultdict
BUG_LINE_REGEX = re.compile(
- r'(?m)^(?P<flag>[>\s]*(?:BUGS?|ISSUE) *[ :=] *)(?P<data>.*)$')
+ r'(?m)^(?P<flag>[>\s]*(?:BUGS?|ISSUE|Bugs?) *[ :=] *)(?P<data>.*)$')
PROJECT_NAME_REGEX = r'(?P<project>[a-z0-9][-a-z0-9]*[a-z0-9])'
BUG_NUMBER_REGEX = r'(?P<bugnum>[0-9]+)'
@@ -31,7 +31,7 @@ REGEXES = [
]
-def normalize_project_name(project):
+def normalize_project_name(project): # pragma: no cover
"""Return the canonical name for a project specification."""
mapping = {
'nacl': 'nativeclient',
@@ -40,7 +40,7 @@ def normalize_project_name(project):
return mapping.get(project, project)
-def get_issues(log_entry, default_project):
+def get_issues(log_entry, default_project): # pragma: no cover
"""Extract bug #'s from a SCM commit log message.
Args:
« no previous file with comments | « no previous file | infra/services/bugdroid/test/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698