Request for `>GitHub Pull Requests: Forget Pull Request`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- git, github, typescript
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Bắt đầu bằng cách lần theo lệnh hiện có Checkout Default Branch và các cài đặt githubPullRequests.postDone và githubPullRequests.deleteBranchAfterMerge. Tính năng hoàn tất khi một pull request đã được hợp nhất có thể quay lại branch mặc định, áp dụng hành vi pull đã cấu hình và xóa branch đã được checkout trước đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 2.6k
- Fork
- 800
- Merge trung bình
- 22 giờ 1 phút
- Pull request đã merge (30 ngày)
- 33
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/vscode-pull-request-github
-
PR overview remains stuck checking mergeability after an UNKNOWN responseCó thể đã có người làm @alexr00 đã nhận 6 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/vscode-pull-request-github#8953 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Issue 3 — DocumentationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/vscode-pull-request-github#8792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stacked PRs: PR state does not change in stack unless you manually change the webviewCó thể đã có người làm @alexr00 đã nhận hôm nay. Đang mởbug
microsoft/vscode-pull-request-github#9020 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Colours are off for sub-buttons under Create Merge CommitCó thể đã có người làm @alexr00 đã nhận 1 ngày trước. Đang mởbug
microsoft/vscode-pull-request-github#9019 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Unstacking PRs still shows Merge stack option afterCó thể đã có người làm @alexr00 đã nhận 1 ngày trước. Đang mởbug
microsoft/vscode-pull-request-github#9018 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/vscode-pull-request-github
Issue tương tự
-
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 85/100
capricorn86/happy-dom#2474 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
JSerwatka/letterboxd-tweaks#81 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
siyuan-note/siyuan#20165 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
polkadot-js/phishing#5716 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
juice-shop/juice-shop#3662 ·
Maintainer thường phản hồi trong vòng 1 ngày