Add 'b' as a BUG= identifier for buganizer.

Buganizer is opening up for external projects too. Allow to use BUG=b:9999 to
refer to a buganizer ticket.

TEST=use new syntax in a CL and re-upload it

Change-Id: I733a8907fea9beb0252214338f2db16503c5b07a
Commit-Queue: Stefan Sauer <>
Tested-by: Stefan Sauer <>
Reviewed-by: Mike Frysinger <>
diff --git a/ b/
index d858eaa..5ba3695 100755
--- a/
+++ b/
@@ -396,12 +396,13 @@
            'the chromium tracker in your BUG= line now.')
     return HookFailure(msg)
-  BUG_RE = r'\nBUG=([Nn]one|(chrome-os-partner|chromium|brillo):\d+)'
+  BUG_RE = r'\nBUG=([Nn]one|(chrome-os-partner|chromium|brillo|b):\d+)'
   if not, _get_commit_desc(commit)):
     msg = ('Changelist description needs BUG field (after first line):\n'
            'BUG=brillo:9999 (for Brillo tracker)\n'
            'BUG=chromium:9999 (for public tracker)\n'
            'BUG=chrome-os-partner:9999 (for partner tracker)\n'
+           'BUG=b:9999 (for buganizer)\n'
     return HookFailure(msg)
diff --git a/ b/
index c0b4ea4..5b78f1b 100755
--- a/
+++ b/
@@ -528,6 +528,7 @@
     """Accept a commit message w/a valid BUG."""
+    self.assertMessageAccepted('\nBUG=b:1234\n')
   def testNone(self):
     """Accept BUG=None."""
@@ -556,6 +557,7 @@
   def testNoTrackers(self):
     """Reject commit messages w/invalid trackers."""
+    self.assertMessageRejected('\nBUG=br:1234\n')
   def testMissing(self):
     """Reject commit messages w/no BUG line."""