summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/lib/Data.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-10-19 16:25:15 +0200
committerByron Jones <glob@mozilla.com>2015-10-19 16:25:15 +0200
commit0ce40b991790cd7695f289b27237b8f2751e5f9b (patch)
tree20adb737898b112b2896cf899ee2237ecbcb0cf4 /extensions/BMO/lib/Data.pm
parenta0fcc8ff20fe57bf442402ba227954ffb33a2175 (diff)
downloadbugzilla-0ce40b991790cd7695f289b27237b8f2751e5f9b.tar.gz
bugzilla-0ce40b991790cd7695f289b27237b8f2751e5f9b.tar.xz
Bug 1146780 - treat github and mozreview attachments as patches
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 d5a87b50a..c799de2aa 100644
--- a/extensions/BMO/lib/Data.pm
+++ b/extensions/BMO/lib/Data.pm
@@ -28,16 +28,19 @@ our %autodetect_attach_urls = (
title => 'GitHub Pull Request',
regex => qr#^https://github\.com/[^/]+/[^/]+/pull/\d+/?$#i,
content_type => 'text/x-github-pull-request',
+ can_review => 1,
},
reviewboard => {
title => 'MozReview',
regex => qr#^https?://reviewboard(?:-dev)?\.(?:allizom|mozilla)\.org/r/\d+/?#i,
content_type => 'text/x-review-board-request',
+ can_review => 1,
},
google_docs => {
title => 'Google Doc',
regex => qr#^https://docs\.google\.com/(?:document|spreadsheets|presentation)/d/#i,
content_type => 'text/x-google-doc',
+ can_review => 0,
},
);