Hi all:
I’m Joey and from infrastructure team of openEuler. So glad to see you guys and hope everybody is doing well.
I’m writing here to have a brief introduction to the new features provided by ci-bot. We believe they would be helpful for your repository management.
As it’s known to us, ci-bot is an automation system to handle lots of
infrastructure stuff, such as gitee web hook events, repository management, owner management and etc. For more details about our lovely ci-bot, please refer to https://gitee.com/openeuler/ci-bot. For now, please let me elaborate how you can make use of the two features to ease the repository management.
> Previously users could leave a comment at the index page of the project, which is a great feature provided by Gitee. While as we all know, the more conventional way is posting an issue request for questions/bugs/features. So after discussion, we finally consider to disable the comment-to-repository feature for all repositories. So here comes to this functionality, which adds an extra commentable
property. If it’s not specified, the default value is false
of boolean type.
> Actually, you DO NOT need to pay any attention to this new property since non-commentable repository is strongly recommended. Just think it never exists. The example is shown as below,
```yaml
community: openeuler
repositories:
- name: A-Tune
description: ""
type: public
commentable: false # User CAN NOT see or leave comment to repository
- name: ci-bot
description: ""
type: public
commentable: true # Users CAN see and leave comment to repository
- name: community
description: ""
type: public
# User CAN NOT see or leave comment to repository
```
- iSulad-kit ===> iSulad-img
- iSulad-lxcfs-toolkit ===> lxcfs-tools
- iSulad-tools ===> syscontainer-tools
> As the PR is shown to us, the code diff is as below, which leaded ci-bot to completely remove the old repository and create a new empty
one with the new name, causing loss of all the existing issues and PRs.
```diff
- - name: iSulad-kit
+ - name: iSulad-img
description: ""
- - name: iSulad-lxcfs-toolkit
+ - name: lxcfs-toolkit
description: ""
- - name: iSulad-tools
+ - name: syscontainer-tools
description: ""
```
> While after the PR has been merged, the diff would be like the following. This could make use of the newly supported
renaming-repository Gitee OpenAPI to keep all the issues and PRs unchanged.
```diff
- - name: iSulad-kit
+ - name: iSulad-img
description: ""
+ rename_from: iSulad-kit
- - name: iSulad-lxcfs-toolkit
+ - name: lxcfs-toolkit
description: ""
+ rename_from: iSulad-lxcfs-toolkit
- - name: iSulad-tools
+ - name: syscontainer-tools
description: ""
+ rename_from: iSulad-tools
```
> While it should noted that rename_from
is not declarative
but imperative cause it will take effect only for once and not stored in
DB. So if we remove it from repository definition after renaming
operation has been finished, nothing will happen.
Hopefully I have explained clear enough. Currently the new functionalities are not in production yet and your feedback is rather important to us. So please reply this email for further discussion as soon as you have any doubt. Looking forward to your feedback.
Take care!
Best regards,
Joey