如何使用 api 编辑 phabricator 存储库 URI
How to use api edit phabricator repository URI
我想添加存储库 URI 并将其设置为观察模式,因此我尝试将默认 URI I/O 模式从 Read/Write
更改为 No IO
。我试过 diffusion.uri.edit
,在存储库密钥描述中,它说:
This transaction type must be present when creating a new URI and must
not be present when editing an existing URI.
我用 web conduit/method/diffusion.uri.edit
测试了它。在交易中,我使用
[
{"type": "uri","value": "ssh://git@05.mm.net/diffusion/TESTPROCESS/test-process.git"},
{"type": "io","value": "none"}
]
它报告验证错误:
When creating a repository URI, you must specify which repository the
URI will belong to.
我还尝试添加存储库密钥,例如
[
{"type": "uri","value": "ssh://git@git.missfresh.cn:test/test-process.git"},
{"type": "io","value": "none"},
{"type": "repository","value": "PHID-REPO-c7jajliasqtxoclryfim"}
]
它将创建一个新的 URI。 diffusion.uri.edit
的正确值是多少?
我找到了答案。交易参数正确,但还需要objectIdentifier,其值为URI ID。
我想添加存储库 URI 并将其设置为观察模式,因此我尝试将默认 URI I/O 模式从 Read/Write
更改为 No IO
。我试过 diffusion.uri.edit
,在存储库密钥描述中,它说:
This transaction type must be present when creating a new URI and must not be present when editing an existing URI.
我用 web conduit/method/diffusion.uri.edit
测试了它。在交易中,我使用
[
{"type": "uri","value": "ssh://git@05.mm.net/diffusion/TESTPROCESS/test-process.git"},
{"type": "io","value": "none"}
]
它报告验证错误:
When creating a repository URI, you must specify which repository the URI will belong to.
我还尝试添加存储库密钥,例如
[
{"type": "uri","value": "ssh://git@git.missfresh.cn:test/test-process.git"},
{"type": "io","value": "none"},
{"type": "repository","value": "PHID-REPO-c7jajliasqtxoclryfim"}
]
它将创建一个新的 URI。 diffusion.uri.edit
的正确值是多少?
我找到了答案。交易参数正确,但还需要objectIdentifier,其值为URI ID。