microsoft / microsoft/vscode-pull-request-github
Support using `pushRemote` and `merge` to detect the PR of a branch
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 2.6k
- Forks
- 795
- Merge moyen
- 1 j 4 h
- PR mergées (30 j)
- 46
Description
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)
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Aucun fichier ni test n'est nommé. Commencez par localiser la logique d'association entre les branches et les PR, puis suivez la manière dont les paramètres de merge des branches sont associés à la branche from d'une PR. Comparez ce comportement avec le pushRemote de Git et les noms des branches locales ; le travail est terminé lorsque le workflow triangle associe chaque PR à la branche locale prévue sans modifier manuellement .git/config.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, github, typescript, vscode
- Domaine
- developer-experience, devtools, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100