1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-20 03:31:10 +01:00

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:
Joshua Spence 2015-05-03 10:08:31 +10:00
parent 44b17d0a9a
commit 38e89fbb08
2 changed files with 16 additions and 0 deletions

View file

@ -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'),

View file

@ -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) {