mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-16 11:52:40 +01:00
24926f9453
Summary: Ref T11114. This probably still has some bugs, but survives basic sanity checks. Continue pulling commit message logic out of CustomField so we can reduce the amount of responsibility/bloat in the classtree and send more code through EditEngine. Test Plan: - Called `differential.getcommitmessage` via API console for various revisions/parameters (edit and create mode, with and without fields, with and without revisions). - Used `--create`, `--edit` and `--update` modes of `arc diff` from the CLI. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11114 Differential Revision: https://secure.phabricator.com/D17066
16 lines
300 B
PHP
16 lines
300 B
PHP
<?php
|
|
|
|
final class DifferentialRevertPlanCommitMessageField
|
|
extends DifferentialCommitMessageCustomField {
|
|
|
|
const FIELDKEY = 'revertPlan';
|
|
|
|
public function getFieldName() {
|
|
return pht('Revert Plan');
|
|
}
|
|
|
|
public function getCustomFieldKey() {
|
|
return 'phabricator:revert-plan';
|
|
}
|
|
|
|
}
|