summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz/lib
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2017-09-14 18:45:46 +0200
committerDavid Walsh <davidwalsh83@gmail.com>2017-09-14 18:45:46 +0200
commit66b835ba543d4c5a8ecabea9337b11e009b32ce2 (patch)
tree2a385d489397bbb6a4306e1fb7b587e2e7afeeef /extensions/PhabBugz/lib
parent84e1a018bb8a68533cf1a2ece799a64537363d33 (diff)
downloadbugzilla-66b835ba543d4c5a8ecabea9337b11e009b32ce2.tar.gz
bugzilla-66b835ba543d4c5a8ecabea9337b11e009b32ce2.tar.xz
Bug 1399508 - Pass along transaction id to BMO API calls for linking back to the exact change in the revision history (#237)
Diffstat (limited to 'extensions/PhabBugz/lib')
-rw-r--r--extensions/PhabBugz/lib/WebService.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/PhabBugz/lib/WebService.pm b/extensions/PhabBugz/lib/WebService.pm
index 6ef5a8b5c..28ca19172 100644
--- a/extensions/PhabBugz/lib/WebService.pm
+++ b/extensions/PhabBugz/lib/WebService.pm
@@ -218,6 +218,8 @@ sub update_reviewer_statuses {
if ($comment) {
$comment .= "\n" . Bugzilla->params->{phabricator_base_uri} . "D" . $revision_id;
+ # Add transaction_id as anchor if one present
+ $comment .= "#" . $params->{transaction_id} if $params->{transaction_id};
$bug->add_comment($comment, {
isprivate => $attachment->isprivate,
type => CMT_ATTACHMENT_UPDATED,