With reference to the API for Changing Repository, it seems that the name
attribute could be updated, but not for the path
attribute. We are working on adding CI bot support for renaming both the name
and path
of a repository via Gitee OpenAPI.
Is there any plan for it? Any feedbacks are welcome. Thanks very much.
To improve the OpenAPI for better CI automation.
The openEuler community.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
renaming the path means we need update the local git config as well.
That's right. According to the rename request from iSula team, both the name and path get changed because ci-bot create new repository with the new name, leave the previous repository deleted manualy sometime.
I guess we need to change the name and path simultaneously. Please let me know if I'm wrong. Thanks @TommyLike .
@imjoey @TommyLike Thank you for your issue. We plan to support change the name and path later
@liwen Hi, thank you very much.
While I tried several times at API for changing repository, I always encounter an error which said path is missing
even using the name
and path
parameters unchanged.
Since the name
and path
are both mandatory, could you please elaborate how could I change name
and/or path
within a API call? Much thanks.
@liwen Hi, thank you very much.
While I tried several times at API for changing repository, I always encounter an error which said
path is missing
even using thename
andpath
parameters unchanged.Since the
name
andpath
are both mandatory, could you please elaborate how could I changename
and/orpath
within a API call? Much thanks.
@imjoey It will be solved Tonight.I'm sorry to make path
mandatory
@liwen thank you very much.
I have one more question that the ci-bot always get an
400
response when creating a new repository via Gitee OpenAPI from today. Will these two errors have the same cause? Thanks.
@imjoey This is not the same cause, please assign a new issue to me. Thank you for your feedback.
Hi @liwen , The API for Changing Repository still return a 404
when I'm going to update the path
of a repo.
I guess, in OpenAPI, a repo is identified by the path
attribute. So shall we use another attribute as the unique identifier of a repo, such as the repo ID
? Please correct me if I'm wrong. Looking forward to your reply. Thanks.
@liwen Test case has been passed. I also find the updated API doc at https://gitee.com/api/v5/doc_json . I'll mark this resolved. Thank you very much for your help and the great work.
@liwen Test case has been passed. I also find the updated API doc at https://gitee.com/api/v5/doc_json . I'll mark this resolved. Thank you very much for your help and the great work.
@imjoey Thanks
登录 后才可以发表评论