I have a small PHP file that creates a Task.
This is just an example that can be placed in the root of Phorge:
```lang=php,name=create-task.php
<?php
require 'scripts/init/init-script.php';
$task_title = $argv[1];
// Just one random user.
$phorge_user = ( new PhabricatorPeopleQuery() )
->setViewer( PhabricatorUser::getOmnipotentUser() )
->setLimit( 1 )
->executeOne();
$maniphest_transaction_template = new ManiphestTransaction();
// Create a new Task.
$task = ManiphestTask::initializeNewTask($phorge_user);
// Set a title.
$xactions[] = (clone $maniphest_transaction_template)
->setTransactionType(ManiphestTaskTitleTransaction::TRANSACTIONTYPE)
->setOldValue(null)
->setNewValue($task_title);
// Another random action. Set status.
$xactions[] = (clone $maniphest_transaction_template)
->setTransactionType(ManiphestTaskStatusTransaction::TRANSACTIONTYPE)
->setNewValue(ManiphestTaskStatus::getDefaultClosedStatus());
// Save Task.
$editor = (new ManiphestTransactionEditor())
->setActor($phorge_user)
->setContentSource(PhabricatorContentSource::newForSource(PhabricatorConsoleContentSource::SOURCECONST))
->applyTransactions($task, $xactions);
```
So I can execute the file and it works:
```bash
php create-task.php "Task title"
```
== What happens ==
But I get this nonsense "renamed" transaction feed:
{F1795919,size=full}
== What should happen instead ==
I'm quite sure that this should happen instead:
{F1796037,size=full}
== Question ==
Am I doing something wrong?
If not, maybe we have a bug here:
https://we.phorge.it/source/phorge/browse/master/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php;faf43d7edf7b2da743cc900e4ecdca10f64a973f$49