From 66b835ba543d4c5a8ecabea9337b11e009b32ce2 Mon Sep 17 00:00:00 2001 From: dklawren Date: Thu, 14 Sep 2017 12:45:46 -0400 Subject: Bug 1399508 - Pass along transaction id to BMO API calls for linking back to the exact change in the revision history (#237) --- extensions/PhabBugz/lib/WebService.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'extensions/PhabBugz/lib') 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, -- cgit v1.2.3-24-g4f1b