如何通过Gerrit-python-api包在gerrit中设置代码审查?

How to set code review in gerrit via Gerrit-python-api package?

Link 到包的文档(Python-gerrit-api):

https://python-gerrit-api.readthedocs.io/en/latest/index.html

我可以像这样设置代码审查 ssh 查询吗

("gerrit review --code-review +2 --verified +1 --submit")

用这个包?

Set_review Python-gerrit-api 包的功能可用于添加标签,如 verified +1 和 code-review +2.

Link 上面的函数:

https://python-gerrit-api.readthedocs.io/en/latest/gerrit.changes.revision.html?highlight=review#gerrit.changes.revision.Revision.set_review