From 3078778fc06458fc4ffab66c56b0ab4d36c870a6 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 22 May 2012 06:02:12 -0700 Subject: [PATCH] Support more aliases of "Test Plan" in commit messages Summary: Add support for "tests", "testplan" and "tested" as alias of "Test Plan". Test Plan: Created a diff with test plan specified in "tests". Reviewers: csilvers, btrahan Reviewed By: csilvers CC: aran Differential Revision: https://secure.phabricator.com/D2531 --- .../DifferentialTestPlanFieldSpecification.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/applications/differential/field/specification/testplan/DifferentialTestPlanFieldSpecification.php b/src/applications/differential/field/specification/testplan/DifferentialTestPlanFieldSpecification.php index ebd5369d41..4f3dd83479 100644 --- a/src/applications/differential/field/specification/testplan/DifferentialTestPlanFieldSpecification.php +++ b/src/applications/differential/field/specification/testplan/DifferentialTestPlanFieldSpecification.php @@ -89,6 +89,16 @@ final class DifferentialTestPlanFieldSpecification return 'Test Plan'; } + public function getSupportedCommitMessageLabels() { + return array( + 'Test Plan', + 'Testplan', + 'Tested', + 'Tests', + ); + } + + public function renderValueForCommitMessage($is_edit) { return $this->plan; }