1
Arc Diff
帶來了一個模板編輯器來描述你的分支的變化(總結,測試計劃,評論等)。我該如何去添加一個字段到這個模板?如何將自定義字段添加到Phabricator差異提交?
我正在看DifferentialFieldSpecification
class看起來它打算爲此目的而被分類,但我不確定從哪裏開始。
Arc Diff
帶來了一個模板編輯器來描述你的分支的變化(總結,測試計劃,評論等)。我該如何去添加一個字段到這個模板?如何將自定義字段添加到Phabricator差異提交?
我正在看DifferentialFieldSpecification
class看起來它打算爲此目的而被分類,但我不確定從哪裏開始。
您可以使用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。
這已不再可用(儘管他們計劃將其恢復) –
@GoodPerson似乎指的是[Phabricator更新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/)我在變更日誌中找不到任何東西。即使T12085也沒有提到它的任何改變。 – devurandom