Add "reopens" prefix
Summary: Ref T1751. Add a "reopens" prefix for the "open" status. This allows commits to reopen tasks. Test Plan: Pushed a commit containing `Reopens Tx` and saw `Tx` reopened. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T1751 Differential Revision: https://secure.phabricator.com/D12652
This commit is contained in:
@@ -65,6 +65,12 @@ final class PhabricatorManiphestConfigOptions
|
||||
'open' => array(
|
||||
'name' => pht('Open'),
|
||||
'special' => ManiphestTaskStatus::SPECIAL_DEFAULT,
|
||||
'prefixes' => array(
|
||||
'open',
|
||||
'opens',
|
||||
'reopen',
|
||||
'reopens',
|
||||
),
|
||||
),
|
||||
'resolved' => array(
|
||||
'name' => pht('Resolved'),
|
||||
|
||||
@@ -50,6 +50,16 @@ final class ManiphestCustomFieldStatusParserTestCase
|
||||
'Fixes t2apps' => array(),
|
||||
'fixes a bug' => array(),
|
||||
'Prefixes T2' => array(),
|
||||
'Reopens T123' => array(
|
||||
array(
|
||||
'match' => 'Reopens T123',
|
||||
'prefix' => 'Reopens',
|
||||
'infix' => '',
|
||||
'monograms' => array('T123'),
|
||||
'suffix' => '',
|
||||
'offset' => 0,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
foreach ($map as $input => $expect) {
|
||||
|
||||
Reference in New Issue
Block a user