From e068188ea147b8888105de6db56cda2988039d3e Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 5 Jan 2016 14:56:28 -0800 Subject: [PATCH] Mention !status explicitly in the documentation for !close Summary: Ref T10088. Test Plan: {F1055107} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10088 Differential Revision: https://secure.phabricator.com/D14953 --- .../maniphest/command/ManiphestClaimEmailCommand.php | 5 ++++- .../maniphest/command/ManiphestCloseEmailCommand.php | 6 +++++- .../maniphest/command/ManiphestStatusEmailCommand.php | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/applications/maniphest/command/ManiphestClaimEmailCommand.php b/src/applications/maniphest/command/ManiphestClaimEmailCommand.php index 38919617c6..4a6a348dbb 100644 --- a/src/applications/maniphest/command/ManiphestClaimEmailCommand.php +++ b/src/applications/maniphest/command/ManiphestClaimEmailCommand.php @@ -8,7 +8,10 @@ final class ManiphestClaimEmailCommand } public function getCommandSummary() { - return pht('Assign yourself as the owner of a task.'); + return pht( + 'Assign yourself as the owner of a task. To assign another user, '. + 'see `%s`.', + '!assign'); } public function buildTransactions( diff --git a/src/applications/maniphest/command/ManiphestCloseEmailCommand.php b/src/applications/maniphest/command/ManiphestCloseEmailCommand.php index a30f3a35f0..8104fd8b8d 100644 --- a/src/applications/maniphest/command/ManiphestCloseEmailCommand.php +++ b/src/applications/maniphest/command/ManiphestCloseEmailCommand.php @@ -8,7 +8,11 @@ final class ManiphestCloseEmailCommand } public function getCommandSummary() { - return pht('Close a task.'); + return pht( + 'Close a task. This changes the task status to the default closed '. + 'status. For a more powerful (but less concise) way to change task '. + 'statuses, see `%s`.', + '!status'); } public function buildTransactions( diff --git a/src/applications/maniphest/command/ManiphestStatusEmailCommand.php b/src/applications/maniphest/command/ManiphestStatusEmailCommand.php index aa74e33bec..dace0cb255 100644 --- a/src/applications/maniphest/command/ManiphestStatusEmailCommand.php +++ b/src/applications/maniphest/command/ManiphestStatusEmailCommand.php @@ -36,9 +36,11 @@ final class ManiphestStatusEmailCommand "To change the status of a task, specify the desired status, like ". "`%s`. This table shows the configured names for statuses.\n\n%s\n\n". "If you specify an invalid status, the command is ignored. This ". - "command has no effect if you do not specify a status.", + "command has no effect if you do not specify a status.\n\n". + "To quickly close a task, see `%s`.", '!status invalid', - $table); + $table, + '!close'); } public function buildTransactions(