773 Star 1.5K Fork 351

开源中国 / Gitee Feedback

 / 详情

[OpenAPI] Support changing both the name and path of a repository

已上线
需求(问题或诉求)
创建于  
2020-01-31 01:08

需求说明

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.

评论 (19)

imjoey 创建了需求

ping @liwen , could you please take a look? Much appreciated.

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 .

liu 负责人设置为liwen
liwen 添加协作者诺墨

@imjoey @TommyLike Thank you for your issue. We plan to support change the name and path later

@liwen That's really awesome. May I ask is there a firm timetable for that? Thank you very much.

@liwen That's really awesome. May I ask is there a firm timetable for that? Thank you very much.

@imjoey You're welcome. It is expected to be online next Friday.

@liwen Copy that. Thank you very much for the help.

Hi @liwen , I was wondering that is there any updates on this issue? Thanks.

Hi @liwen , I was wondering that is there any updates on this issue? Thanks.

@imjoey Hi,Sorry for being late, the issue has been solved.

@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 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.

@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.

@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.

ping @liwen . Could you please guide me on how to update the repo and path in a single OpenAPI request? Much appreciated for your help.

ping @liwen . Could you please guide me on how to update the repo and path in a single OpenAPI request? Much appreciated for your help.

@imjoey 输入图片说明

@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 任务状态意向 修改为已完成
imjoey 任务状态已完成 修改为已验收

@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 :smile:

嘻酱 关联项目设置为Gitee 运营
诺墨 将工作项从 需求 迁移到 需求(问题或诉求)
诺墨 任务类型需求 修改为需求(问题或诉求)
诺墨 任务状态已验收 修改为已上线

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
335059 imjoey 1659535604 5229366 tommylike 1578982886 13510 liwen 1621912484 551147 normalcoder 1578927376
Ruby
1
https://gitee.com/oschina/git-osc.git
git@gitee.com:oschina/git-osc.git
oschina
git-osc
Gitee Feedback

搜索帮助