Request for `>GitHub Pull Requests: Forget Pull Request`
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 58/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- git, github, typescript
- Bereich
- developer-experience, tooling
Rechercherichtung
Beginne damit, den bestehenden Befehl Checkout Default Branch sowie die Einstellungen githubPullRequests.postDone und githubPullRequests.deleteBranchAfterMerge nachzuverfolgen. Das Feature ist abgeschlossen, wenn ein gemergter Pull Request zum Default Branch zurückkehren, das konfigurierte Pull-Verhalten anwenden und den zuvor ausgecheckten Branch löschen kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.6k
- Forks
- 805
- Ø Merge
- 2 T. 3 Std.
- Gemergte PRs (30 T.)
- 38
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoft/vscode-pull-request-github
-
Issue 3 — DocumentationOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
microsoft/vscode-pull-request-github#8792 ·
Maintainer antworten meist innerhalb von 1 Tag
-
PR description view doesn't show PR eventsEvtl. vergeben @alexr00 hat das vor 1 Tag übernommen. Offen
microsoft/vscode-pull-request-github#9051 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Test "Update Stack"Offentestplan-item
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
microsoft/vscode-pull-request-github#9046 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Issue links in overview HTML are emitted with an extra quote in hrefEvtl. vergeben @alexr00 hat das vor 5 Tagen übernommen. Offenbug
microsoft/vscode-pull-request-github#9022 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Colours are off for sub-buttons under Create Merge CommitEvtl. vergeben @alexr00 hat das vor 5 Tagen übernommen. Offeninfo-needed
microsoft/vscode-pull-request-github#9019 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in microsoft/vscode-pull-request-github
Ähnliche Issues
-
bug cli service
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
create-element: same editorAlias silent-fallback bug as #201, not covered by that fixEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offengenerated-by-ai
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
umbraco/Umbraco-CMS-MCP-Editor#208 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Table: Space fires onActivate in single-selection mode — the reference doc and the JSDoc disagreeOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
sidorares/react-x11-components#764 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
backnotprop/plannotator#1840 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
JoviDeCroock/pracht#432 ·
Maintainer antworten meist innerhalb von 1 Tag