microsoft / microsoft/vscode-pull-request-github
Request for `>GitHub Pull Requests: Forget Pull Request`
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 2.6k
- Forks
- 796
- Merge moyen
- 1 j 4 h
- PR mergées (30 j)
- 46
Description
When I create a pull request, my workflow is typically:
- Create a branch,
feature/foo - Do work
- Create a pull request associated with
feature/foo - Get a review from a colleague
- Look at the review on GitHub
- Merge the pull request from GitHub
This leaves my local state in an awkward scenario. I need to:
- Switch to
main - Pull
main - Delete my
feature/foobranch
I can do this manually, but this is such a common workflow of mine that I feel like a command for this is somehow missing. In R, we've created a suite of PR related helpers for this and the relevant one is usethis::pr_finish(), which does these exact steps.
The closest I can seem to get is:
>GitHub Pull Requests: Checkout Default Branch- With
"githubPullRequests.postDone": "checkoutDefaultBranchAndPull"
(I'm not even 100% sure that a pull occurs when you use the command, but I think it does)
This accomplishes the first 2 bullets, but not the 3rd, so I have to go delete feature/foo myself.
I think I am missing something like
>GitHub Pull Requests: Forget Pull Request
Which has the purpose of:
- Checkout the default branch (subject to
githubPullRequests.postDoneso I can make it also pull) - Delete the current branch you switched from
I would use this all the time if it existed as a way to cleanup after a merge via the GitHub UI.
I am aware of "githubPullRequests.deleteBranchAfterMerge": true. I do not believe that solves my problem because I almost exclusively merge via the GitHub UI, and it only works if I merge via the Extension UI.
It's also worth noting that if I checkout someone else's PR to perform a review, then it mostly works as I expect.
- Checkout colleague PR
feature/barusing the GitHub Pull Request extension - Leave my review
- Click
Checkout Default Branch(with"githubPullRequests.postDone": "checkoutDefaultBranchAndPull"set) - This auto deletes
feature/barfor me
This workflow is quite nice! I want something similar for finishing off my own PRs.
Here is a video of me doing that workflow, which I do like:
https://github.com/user-attachments/assets/ff6a07e6-7ae5-4d8b-a447-91d51c96b597
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
Commencez par suivre la commande existante Checkout Default Branch ainsi que les paramètres githubPullRequests.postDone et githubPullRequests.deleteBranchAfterMerge. La fonctionnalité est terminée lorsqu’une pull request fusionnée peut revenir sur la branche par défaut, appliquer le comportement de pull configuré et supprimer la branche précédemment extraite.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, github, typescript
- Domaine
- developer-experience, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 58/100