diff options
author | Byron Jones <glob@mozilla.com> | 2015-07-08 09:34:04 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-07-08 09:34:04 +0200 |
commit | 952829714b22a5020afabb02b6bab6ce0c8572fa (patch) | |
tree | 51d37c74a4b8d221e48a2f17478674767ea63671 /extensions/BMO/lib/Data.pm | |
parent | b46c86a9013a85e6244cb78cdb4bba3c6f7cd5a9 (diff) | |
download | bugzilla-952829714b22a5020afabb02b6bab6ce0c8572fa.tar.gz bugzilla-952829714b22a5020afabb02b6bab6ce0c8572fa.tar.xz |
Bug 1143132: emails about redirected attachment urls link to attachment-edit instead of the actual url (mozreview, github, etc)
Diffstat (limited to 'extensions/BMO/lib/Data.pm')
-rw-r--r-- | extensions/BMO/lib/Data.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/BMO/lib/Data.pm b/extensions/BMO/lib/Data.pm index 2e6f7e020..dc2a289a4 100644 --- a/extensions/BMO/lib/Data.pm +++ b/extensions/BMO/lib/Data.pm @@ -26,14 +26,17 @@ our @EXPORT = qw( $cf_visible_in_products # attachment. our %autodetect_attach_urls = ( github_pr => { + title => 'GitHub Pull Request', regex => qr#^https://github\.com/[^/]+/[^/]+/pull/\d+/?$#i, content_type => 'text/x-github-pull-request', }, reviewboard => { + title => 'MozReview', regex => qr#^https?://reviewboard(?:-dev)?\.(?:allizom|mozilla)\.org/r/\d+/?#i, content_type => 'text/x-review-board-request', }, google_docs => { + title => 'Google Doc', regex => qr#^https://docs\.google\.com/(?:document|spreadsheets|presentation)/d/#i, content_type => 'text/x-google-doc', }, |