2014-02-08 3 views
1

Arc Diff은 지점 변경 (요약, 테스트 계획, 검토 자 등)을 설명하는 템플릿이있는 편집기를 가져옵니다.이 템플릿에 필드를 추가하려면 어떻게해야합니까?Phabricator Differential 커밋에 사용자 정의 필드를 어떻게 추가합니까?

저는이 목적을 위해 서브 클래 싱하려는 것으로 보이는 DifferentialFieldSpecification class을보고있었습니다.하지만 어디서부터 시작해야할지 확신하지 못했습니다.

답변

1

differential.custom-field-definitions을 사용하여 간단한 사용자 정의 필드를 추가 할 수 있습니다.

예 : 더 복잡 필드에

{ 
    "companyname:fieldname": { 
    "name": "Short Name", 
    "description": "", 
    "type": "text", 
    "caption": "Text to display below the field when editing.", 
    "required":false, 
    "disabled":false, 
    "edit":true 
    } 
} 

Phabricator documentation 살펴 보시기 바랍니다.

+1

더 이상 사용할 수 없습니다 (다시 가져올 계획 임). –

+0

@GoodPerson은 [Phabricator update 2017.02] (https://secure.phabricator.com/w/changelog/2017.02/), 특히 [ T12085] (https://secure.phabricator.com/T12085). 이것이 [differential.custom-field-definitions] 구성 값에 어떤 영향을 미치는지 보지는 못하지만 (여전히 문서화되어 있음) (https://secure.phabricator.com/book/phabricator/article/custom_fields/) 나는 changelog에서 아무것도 찾을 수 없었다. 심지어 T12085는 그것에 대한 어떠한 변화도 언급하지 않습니다. – devurandom