matrix-org / matrix-org/mscbot-python

Track a remote branch for an MSC

未关闭
#21 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
7
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

#### Is your feature request related to a problem? Please describe.
In situations where the original author may want to delegate an MSC, and where - due to security reasons, or likewise - the author is unable to grant the delegate author access to the PR's origin repository, it may want to have the PR branch be updated from a remote branch instead, such as the delegate author's own fork.

In other situations, an organisation may want to - for legal reasons, or likewise - develop the commits on their own git server, but have them be fetched to the MSC's PR branch.

#### Describe the solution you'd like.
For these problems, I'd like the mscbot to be able to be set up to watch a remote branch. Be it on github, or on any compatible git server.

The original author of the PR has to setup the watch, via `@mscbot watch `.

After this, the MSC bot will only try to fetch commits from that branch via a `git pull`-like mechanism. That is to say; it will not force-push the PR branch with updates from the remote branch, it will only append new commits that were present in the remote branch, but not in the PR branch.

In other words, the MSC bot will only [fast-forward](https://stackoverflow.com/a/29673993/8700553) the PR branch to the remote branch.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 `@mscbot watch ` 命令以及 bot 现有的 MSC PR-branch 更新路径开始;跟踪远程分支和 fast-forward 更新的处理方式。完成标准是:已配置的远程分支可以在不进行 force-pushing 的情况下更新 PR 分支,包括托管在兼容 Git 服务器上的分支。

由索引模型根据 Issue 内容生成。

评估

技术栈
git, github, python
领域
devtools
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。