Skip to content

release publish 完成后自动更新主仓库子模组指针 #12

Description

@Guo-Zhang

动机

在 monorepo 中发布 CLI 子模组的新版本后,主仓库的 apps/qtcloud-devops/src/cli 子模组指针指向旧 commit。需要手动 code sync 来更新。

期望

release publish 完成后:

  1. 检测当前仓库是否为子模组(.git 是文件而非目录)
  2. 如是,自动在父仓库执行 git add + git commit 更新子模组指针
  3. 推送到远端

参考

GitSubmoduleEditor::update_parent_pointer() / push_parent() 已完成 git2 化,可直接复用。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions