mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 02:12:41 +01:00
Make "bin/audit synchronize" actually save changes
Summary: Ref T10978. Although this script prints out some very good changes, it does not currently persist them to the database. Test Plan: Ran `bin/audit synchronize`, saw the change appear both on the CLI and in the database. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10978 Differential Revision: https://secure.phabricator.com/D17276
This commit is contained in:
parent
2a527a51f2
commit
a3417ccd78
1 changed files with 3 additions and 1 deletions
|
@ -44,12 +44,14 @@ final class PhabricatorAuditSynchronizeManagementWorkflow
|
||||||
echo tsprintf(
|
echo tsprintf(
|
||||||
"%s\n",
|
"%s\n",
|
||||||
pht(
|
pht(
|
||||||
'Updated "%s": "%s" -> "%s".',
|
'Updating "%s": "%s" -> "%s".',
|
||||||
$commit->getDisplayName(),
|
$commit->getDisplayName(),
|
||||||
PhabricatorAuditCommitStatusConstants::getStatusName(
|
PhabricatorAuditCommitStatusConstants::getStatusName(
|
||||||
$old_status),
|
$old_status),
|
||||||
PhabricatorAuditCommitStatusConstants::getStatusName(
|
PhabricatorAuditCommitStatusConstants::getStatusName(
|
||||||
$new_status)));
|
$new_status)));
|
||||||
|
|
||||||
|
$commit->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue