Request for `>GitHub Pull Requests: Forget Pull Request`
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 58/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- git, github, typescript
- Domínio
- developer-experience, tooling
Direção de pesquisa
Comece rastreando o comando existente Checkout Default Branch e as configurações githubPullRequests.postDone e githubPullRequests.deleteBranchAfterMerge. O recurso estará concluído quando um pull request mesclado puder retornar para a branch padrão, aplicar o comportamento de pull configurado e excluir a branch que havia sido verificada anteriormente.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- TypeScript
- Estrelas
- 2.6k
- Forks
- 805
- Merge médio
- 1d 13h
- PRs com merge (30d)
- 38
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoft/vscode-pull-request-github
-
Issue 3 — DocumentationAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
microsoft/vscode-pull-request-github#8792 ·
Mantenedores costumam responder em até 1 dia
-
GyhAberta~spam
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
microsoft/vscode-pull-request-github#9053 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
PR description view doesn't show PR eventsTalvez já em andamento @alexr00 assumiu há 3 dias. Aberta
microsoft/vscode-pull-request-github#9051 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Test "Update Stack"Talvez já em andamento @benvillalobos assumiu hoje. Abertatestplan-item
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 30/100
microsoft/vscode-pull-request-github#9046 · 2 responsáveis ·
Mantenedores costumam responder em até 1 dia
-
Colours are off for sub-buttons under Create Merge CommitTalvez já em andamento @alexr00 assumiu há 7 dias. Abertainfo-needed
microsoft/vscode-pull-request-github#9019 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de microsoft/vscode-pull-request-github
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
microsoft/playwright#43327 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
microsoft/TypeScript#64758 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
opensearch-project/OpenSearch-Dashboards#12937 ·
Mantenedores costumam responder em até 2 dias
-
Liveness marks block-included attesters live in the block's epoch instead of the attestation's epochAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
status: needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
a2ui-project/a2ui#3158 ·
Mantenedores costumam responder em até 2 dias