markup within bugzilla comments

a response i received multiple times following yesterday’s deployment of comment previews on bugzilla.mozilla.org was “wait, bugzilla allows markup within comments now?”.

yes, and this has been the case for a very long time.  here’s a list of all the recognised terms on bugzilla.mozilla.org;

  • bug number
    • links to the specified bug, if it exists. the href’s tooltip will contain the information about the bug
    • eg. “bug 40896″
  • attachment number
    • links to the specified attachment, if it exists. the href’s tooltip will contain the information about the attachment
    • adds action buttons for [diff][details][review]
    • eg. “attachment 8374664″
  • comment number
    • links to a comment in the current bug. “comment 0″ will link to the bug’s description
    • eg. “comment 12″
  • bug number comment number
    • links to a comment in another bug.
    • eg. “bug 40896 comment 12″
  • email addresses
    • linkified into a mailto: href
    • eg. “glob@mozilla.com”
  • quoted content
    • lines starting with “>” will be treated as quoted text, and will be rendered differently from normal comment text
    • quoted lines will not wrap (click on the “wrap” button to manually wrap quoted text)
    • eg.”> 10 PRINT “HELLO”
  • bp-crash-id
    • links to the crash-stats for the specified crash-id
    • eg. “bp-56630b1a-0913-4b4e-b701-d96452140102″
  • CVE-number or CAN-number
    • links to the cve/can security release information on cve.mitre.org
    • eg. “CVE-2013-1733″
  • rnumber
    • links to a svn.mozilla.org revision number
    • eg. “r1234″
  • bzr commit messages
  • git commit messages
    • links to the revision on git.mozilla.org
    • see example here (only the last two lines of the commit message are required)
  • hg changesets: repository changeset revision
    • links to the changeset on hg.mozilla.org
    • eg. “mozilla-inbound changeset c7802c9d6eec”

5 responses to “markup within bugzilla comments

  1. Colby Russell February 14, 2014 at 2:25 pm

    You forgot bug number, comment number. It automatically links to that comment for that bug.

  2. Robert Kaiser February 15, 2014 at 12:37 am

    Wow, the UUID thing sounds pretty bad. We avoid calling this ID anything like that everywhere else, we call it “crash ID” instead. I think we probably should only support the bp-* variant.

    • glob February 17, 2014 at 12:47 pm

      i’m not surprised; most of those are BMO customisations which date back as far as i can see in our revision history.

      are you able to file a bug about getting UUID linkification removed?

  3. Anders February 17, 2014 at 12:35 am

    It would be very useful if this list was put in a popup next to the comment field in Bugzilla.

Follow

Get every new post delivered to your Inbox.

Join 87 other followers