以编程方式创建phabricator差异请求,无需任何回购

我试图模拟创建差异请求,而不实际创建回购,差异和做arc差异。以编程方式创建phabricator差异请求,无需任何回购

我想用 https://secure.phabricator.com/conduit/method/differential.createrawdiff/

或createDiff命令。但我不确定JSON应该是什么? 差异请求是如何发送的?我如何伪造创建与curl请求一起使用?

任何见解和帮助非常感谢?

非常感谢

回答:

这是我使用的JSON:

'{ 

"diff": "diff --git a/scripts/deploy/restart_apache b/scripts/deploy/restart_apache\nindex 510a7f9..d29177c 100755\n--- a/scripts/deploy/restart_apache\n+++ b/scripts/deploy/restart_apache\[email protected]@ -59,7 +59,7 @@ do\n # Set variables for the alpha context.\n webServerBaseName='\''alpha-w'\''\n webServerSuffix='\'''\''\n- numWebServers=1\n+ numWebServers=2\n checkPort=80\n ;;\n \"beta\")"

}'

你会的,但是,需要使用奥术师。我不相信有一种方法可以在不使用Arcanist的情况下使用API​​。哟不需要使用arc diff,但你仍然需要奥术师。您通过Arcanist使用的命令是:

echo $json_string | arc call-conduit --conduit-uri https://secure.phabricator.com/ --conduit-token $conduit_token differential.createrawdiff 

以上是 以编程方式创建phabricator差异请求,无需任何回购 的全部内容, 来源链接: utcz.com/qa/257606.html

回到顶部