Support "upload" command for GitLab
What does this MR do and why?
Related issue: https://jihulab.com/gitlab-cn/gitlab/-/issues/3155
为极狐 GitLab 适配 mono upload
命令。
此改动包括三部分内容:
-
mono upload
代码推送的目标,从 Gerrit review url 改为 GitLab repo url。我们不再需要所谓的 review url -
mono upload
推送代码后,自动在 GitLab 创建 Merge request,并加上 Labelmonorepo
。 - 支持禁用
mono
子命令参数,并借此禁用了upload
的一些不需要的参数。
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
-
按 安装步骤 完成 Mono client 的安装
-
手动将
mono
分支切换为当前 MR 的feat-upload-cmd
$ cd .repo/repo/ && git checkout feat-upload-cmd && cd -
-
修改本地仓库的代码,使用
mono upload
上传代码 -
打开 jihulab.com,期望看到代码推送成功,并创建了对应的 MR
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
由 路志远 编辑于