microsoft / microsoft/vscode-pull-request-github
Support using `pushRemote` and `merge` to detect the PR of a branch
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.6k
- Forks
- 796
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 46
Descripción
My branches are set up like this (a triangle workflow, but with just one remote):
[branch "feature1"]
pushRemote = origin
remote = origin
merge = refs/heads/master
[branch "feature2-using-feature1"]
pushRemote = origin
remote = origin
merge = refs/heads/feature1
Currently it seems like this plugin is matching the "merge" setting of the branches against the "from" setting of the PR to decide which branch should be checked-out for a PR. However this results in feature2-using-feature1 being associated with feature1's PR.
I couldn't find a setting to make this work. I'm working around it by going into .git/config and manually updating the vscode-merge-base and github-pr-owner-number settings for each branch, but it would be great if there's some way to configure this plugin so that PRs can be associated with branches based on the pushRemote setting and matching names of the local branches with those on the pushRemote (https://git-scm.com/docs/git-config#Documentation/git-config.txt-branchnamepushRemote)
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
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
No se nombran archivos ni tests. Empieza localizando la lógica de asociación entre branches y PRs, y sigue cómo se emparejan los ajustes de merge de los branches con el from branch de un PR. Compara ese comportamiento con el pushRemote de Git y los nombres de los branches locales; el trabajo estará terminado cuando el flujo de trabajo de triangle asocie cada PR con el branch local previsto sin editar manualmente .git/config.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- git, github, typescript, vscode
- Área
- developer-experience, devtools, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100