matrix-org / matrix-org/mscbot-python
Track a remote branch for an MSC
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 7
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza por el comando @mscbot watch <repository URL> <branch> y por la ruta existente del bot para actualizar MSC PR-branch; sigue cómo se gestionan las ramas remotas y las actualizaciones fast-forward. Se considera terminado cuando una rama remota configurada puede actualizar la rama del PR sin force-pushing, incluidas las ramas alojadas en servidores Git compatibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- git, github, python
- Área
- devtools
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100