matrix-org / matrix-org/mscbot-python
Track a remote branch for an MSC
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 7
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
#### 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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với lệnh `@mscbot watch ` và đường dẫn hiện có của bot để cập nhật MSC PR-branch; theo dõi cách các branch từ xa và các cập nhật fast-forward được xử lý. Hoàn thành khi một branch từ xa đã được cấu hình có thể cập nhật branch của PR mà không cần force-pushing, bao gồm cả các branch được lưu trữ trên những máy chủ Git tương thích.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- git, github, python
- Lĩnh vực
- devtools
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 30/100