I am trying to integrate phabricator with jabber chat. I have created a bot that sends messages to the commit author in jabber chat for every new feed query. My requirement is that how do I get the original author of a commit if the feed story is a concern,audit or commnet. I want to notify the author of the commit of any concerns raised with his commit. Do I need to analyse the story to get this informaiton? How do I go about doing this?
Thanks in advance
The story object should have a data element that will include information about the Author and committer. Like so:
"PHID-STRY-spjfpdv4wuigblmh3ygb" : {
"class" : "PhabricatorFeedStoryCommit",
"epoch" : 1409840112,
"authorPHID" : "PHID-USER-tcyihgi43sw6o7yrnhu5",
"chronologicalKey" : "6055220066741547443",
"data" : {
"commitPHID" : "PHID-CMIT-ievqiimtsnlfhlk5imqq",
"summary" : "[blah]",
"authorName" : "Author Name <author_email@example.com>",
"authorPHID" : "PHID-USER-tcyihgi43sw6o7yrnhu5",
"committerName" : "Commiter Name <commiter_email@example.com>",
"committerPHID" : "PHID-USER-tcyihgi43sw6o7yrnhu5"
}
}
If not, it should have an objectPHID:
"PHID-STRY-mqlkjzwkbr3th4h5n2eg" : {
"class" : "PhabricatorApplicationTransactionFeedStory",
"epoch" : 1409841382,
"authorPHID" : "PHID-USER-2bubef6xonwicvaool4w",
"chronologicalKey" : "6055222630292077307",
"data" : {
"objectPHID" : "PHID-CMIT-is7pmo5nyvv4eruq2msn",
"transactionPHIDs" : [
"PHID-XACT-CMIT-svvkzf7dfplzdxp"
]
}
}
You can query from there using conduit calls.