Skip to content

Support "upload" command for GitLab

路志远请求将feat-upload-cmd合并到main-jh

What does this MR do and why?

Related issue: https://jihulab.com/gitlab-cn/gitlab/-/issues/3155

为极狐 GitLab 适配 mono upload 命令。

此改动包括三部分内容:

  1. mono upload 代码推送的目标,从 Gerrit review url 改为 GitLab repo url。我们不再需要所谓的 review url
  2. mono upload 推送代码后,自动在 GitLab 创建 Merge request,并加上 Label monorepo
  3. 支持禁用 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

iShot_2023-07-06_17.48.11

  1. 安装步骤 完成 Mono client 的安装

  2. 手动将 mono 分支切换为当前 MR 的 feat-upload-cmd

    $ cd .repo/repo/ && git checkout feat-upload-cmd && cd -
  3. 修改本地仓库的代码,使用 mono upload 上传代码

  4. 打开 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.

路志远 编辑于

合并请求报告

加载中