Phabricator API:指定用户查看差异

Phabricator API:指定用户查看差异,api,phabricator,Api,Phabricator,使用phabricator API(通过API密钥进行身份验证),如何以编程方式指定用户查看差异?您需要使用differential.revision.editAPI调用。此外,您可能需要使用differential.revision.search和user.search或phid.lookup来获取diff和user对象的phid echo '{ "update": "PHID-OF-DIFF-GOES-HERE" "type": "reviewers.add", "va

使用phabricator API(通过API密钥进行身份验证),如何以编程方式指定用户查看差异?

您需要使用
differential.revision.edit
API调用。此外,您可能需要使用
differential.revision.search
user.search
phid.lookup
来获取diff和user对象的phid

 echo '{
   "update": "PHID-OF-DIFF-GOES-HERE"
   "type": "reviewers.add", 
   "value": ["PHID-OF-USER-GOES-HERE"]
 }' | arc call-conduit --conduit-uri $PHABRICATOR_SERVER_URL --conduit-token $API_TOKEN differential.revision.edit