Track a remote branch for an MSC
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
Start with the @mscbot watch <repository URL> <branch> command and the bot’s existing MSC PR-branch update path; trace how remote branches and fast-forward updates are handled. Done means a configured remote branch can update the PR branch without force-pushing, including branches hosted on compatible Git servers.
Written by the indexing model from the issue text.
Description
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 <repository URL> <branch>.
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 the PR branch to the remote branch.
- Dominant language
- Python
- Stars
- 7
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from matrix-org/mscbot-python
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
matrix-org/mscbot-python#39 ·
-
enhancement good first issue
Difficulty 4/5 3-5 days Newbie friendliness 35/100
matrix-org/mscbot-python#38 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
matrix-org/mscbot-python#36 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
matrix-org/mscbot-python#35 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
matrix-org/mscbot-python#34 ·
All issues in matrix-org/mscbot-python
Similar issues
-
triage/confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100