@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phabot pickup repository objects

Test Plan:
<dctrwatson> rP
<phabot> rP (Phabricator) - https://secure.phabricator.com/diffusion/P/

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D8101

authored by

John Watson and committed by
epriestley
22ccb037 08225bd8

+6 -2
+6 -2
src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php
··· 83 83 $pattern = 84 84 '@'. 85 85 '(?<!/)(?:^|\b)'. 86 - '(r[A-Z]+[0-9a-z]{1,40})'. 86 + '(r[A-Z]+)([0-9a-z]{0,40})'. 87 87 '(?:\b|$)'. 88 88 '@'; 89 89 if (preg_match_all($pattern, $message, $matches, PREG_SET_ORDER)) { 90 90 foreach ($matches as $match) { 91 - $commit_names[] = $match[1]; 91 + if ($match[2]) { 92 + $commit_names[] = $match[1].$match[2]; 93 + } else { 94 + $object_names[] = $match[1]; 95 + } 92 96 } 93 97 } 94 98