summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/bin
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-03-17 05:13:48 +0100
committerByron Jones <glob@mozilla.com>2015-03-17 05:13:48 +0100
commit2d8badfce2364ffe22bbd8448e7a74bbccba10c7 (patch)
tree004d3896914f5427481192283224809012f1f4a1 /extensions/BMO/bin
parent81f9221bfa9bac2653d569bf4bbf7dbc42a16f98 (diff)
downloadbugzilla-2d8badfce2364ffe22bbd8448e7a74bbccba10c7.tar.gz
bugzilla-2d8badfce2364ffe22bbd8448e7a74bbccba10c7.tar.xz
Bug 1132963: Automatically detect and redirect to Google doc URLs (akin to github-pr and rb handling)
Diffstat (limited to 'extensions/BMO/bin')
-rwxr-xr-xextensions/BMO/bin/migrate-github-pull-requests.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/BMO/bin/migrate-github-pull-requests.pl b/extensions/BMO/bin/migrate-github-pull-requests.pl
index de71a7856..1d84352a2 100755
--- a/extensions/BMO/bin/migrate-github-pull-requests.pl
+++ b/extensions/BMO/bin/migrate-github-pull-requests.pl
@@ -65,7 +65,7 @@ foreach my $attachment (@$attachments) {
$dbh->do(
"UPDATE attachments SET mimetype = ? WHERE attach_id = ?",
undef,
- GITHUB_PR_CONTENT_TYPE, $attachment->{attach_id}
+ 'text/x-github-pull-request', $attachment->{attach_id}
);
# insert into bugs_activity
@@ -75,7 +75,7 @@ foreach my $attachment (@$attachments) {
VALUES (?, ?, ?, ?, ?, ?)",
undef,
$attachment->{bug_id}, $nobody->id, $timestamp, $field->id,
- $attachment->{mimetype}, GITHUB_PR_CONTENT_TYPE
+ $attachment->{mimetype}, 'text/x-github-pull-request'
);
$dbh->do(
"UPDATE bugs SET delta_ts = ?, lastdiffed = ? WHERE bug_id = ?",