mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
Make phabot understand Txxx.
Summary: Maniphest tasks can now be summarized by referencing their respective T<id> in irc. Test Plan: 03:29:28 <@CodeBlock> T218 03:29:29 <@codeblock-phabot> T218: NYANCAT (Priority: Wishlist) - https://secure.phabricator.com/T218 03:30:14 <@CodeBlock> T58 asdf foo bar baz mcFoo T163 03:30:15 <@codeblock-phabot> T58: Allow AphrontFormView to render as a <div /> instead of a form (Priority: Wishlist) - https://secure.phabricator.com/T58 03:30:15 <@codeblock-phabot> T163: arc amend is slow (Priority: Needs Triage) - https://secure.phabricator.com/T163 ... 03:28:23 <@CodeBlock> Oh. Hah, I'm testing against production Conduit. Ah well. 03:28:40 <@CodeBlock> I don't always test my code...but when I do, I do it in prod! :D Reviewers: epriestley CC: Differential Revision: 551
This commit is contained in:
parent
cab33c550e
commit
2728a41fa0
1 changed files with 11 additions and 1 deletions
|
@ -94,7 +94,17 @@ class PhabricatorIRCObjectNameHandler extends PhabricatorIRCHandler {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: Support tasks in Conduit.
|
||||
if ($task_ids) {
|
||||
foreach ($task_ids as $task_id) {
|
||||
$task = $this->getConduit()->callMethodSynchronous(
|
||||
'maniphest.info',
|
||||
array(
|
||||
'task_id' => $task_id,
|
||||
));
|
||||
$output[$task['phid']] = 'T'.$task['id'].': '.$task['title'].
|
||||
' (Priority: '.$task['priority'].') - '.$task['uri'];
|
||||
}
|
||||
}
|
||||
|
||||
if ($commit_names) {
|
||||
$commits = $this->getConduit()->callMethodSynchronous(
|
||||
|
|
Loading…
Reference in a new issue