使用 REST API 查询 Gerrit?
Query Gerrit using REST API's?
首先我对gerrit有了一些点点滴滴的了解。
我想要的是使用 gerrit 更改 url : -
http://review.xx.yy.com/gerrit/#/c/240262/
我想通过使用 REST API(使用 curl)获得 gerrit 服务器和 gerrit refspec (refs/changes/..) 的 URL或任何其他 git 命令。
可能吗?
如果问题不清楚请comment/edit
谢谢。
Gerrit 有一个可以查询的 REST api。
要获得 information about the Gerrit server,您可以使用:
http://review.xx.yy.com/gerrit/config/server/info
你可以像这样使用 curl:
curl -i -H "Accept: application/json" http://review.xx.yy/gerrit/config/server/info
如果你想 query change-sets 你可以使用这样的表格:
http://review.xx.yy.com/gerrit/changes/?q=owner:johndoe
这是 Gerrit 的 REST 文档 API:https://review.typo3.org/Documentation/rest-api.html
首先我对gerrit有了一些点点滴滴的了解。
我想要的是使用 gerrit 更改 url : - http://review.xx.yy.com/gerrit/#/c/240262/
我想通过使用 REST API(使用 curl)获得 gerrit 服务器和 gerrit refspec (refs/changes/..) 的 URL或任何其他 git 命令。
可能吗?
如果问题不清楚请comment/edit
谢谢。
Gerrit 有一个可以查询的 REST api。
要获得 information about the Gerrit server,您可以使用:
http://review.xx.yy.com/gerrit/config/server/info
你可以像这样使用 curl:
curl -i -H "Accept: application/json" http://review.xx.yy/gerrit/config/server/info
如果你想 query change-sets 你可以使用这样的表格:
http://review.xx.yy.com/gerrit/changes/?q=owner:johndoe
这是 Gerrit 的 REST 文档 API:https://review.typo3.org/Documentation/rest-api.html