I use the Phabricator function feed.http-hooksto send messages to Dev chat chat when relevant events happen in the news feed. This works great, showing that "Alice created diff D12345" or "Bob updated diff D54321."
When someone comments on diff, I want to extract the comment text from the story. Whenever there is a comment, Phabricator sends an HTTP POST to my server feed.http-hookscontaining the following parameters:
storyID=42
storyType=PhabricatorApplicationTransactionFeedStory
storyData[objectPHID]=PHID-DREV-blahblah1
storyData[transactionPHIDs][0]=PHID-DREV-blahblah2
storyAuthorPHID=PHID-USER-blahblah3
storyText=tom added a comment to D12345: Some random diff.
epoch=1412243745
My question is: how can I get the actual comment text? I tried to use the Conduit method phid.queryto search for some of these PHIDs, but it got me nowhere. I know this is possible because the comment appears in the actual Recent Activity feed on the Phabricator website. Halp.
source
share