summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/lib/Data.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-08 09:34:04 +0200
committerByron Jones <glob@mozilla.com>2015-07-08 09:34:04 +0200
commit952829714b22a5020afabb02b6bab6ce0c8572fa (patch)
tree51d37c74a4b8d221e48a2f17478674767ea63671 /extensions/BMO/lib/Data.pm
parentb46c86a9013a85e6244cb78cdb4bba3c6f7cd5a9 (diff)
downloadbugzilla-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.pm3
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',
},