cli / cli/cli

`gh browse` command should automatically run `gh repo set-default` if not yet configured

Đang mở
#13,006 8 bình luận 2 reaction 0 người được giao Xem trên GitHub
enhancement gh-browse
Ngôn ngữ chính
Go
Star
46.3k
Fork
9k
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
97

Mô tả

### Describe the feature or problem you’d like to solve

When I clone a new fork repo (`git clone `), and add the upstream remote locally to have both (my fork and original) repo as remotes configured (`git remote add upstream `), and I run `gh browse` for the first time, it always bothers me that I have to manually copy and paste the suggested `gh repo set-default` command, instead of `gh browse` just auto-executing the command for me, so I can select the default repo and it opens fluently.

### Proposed solution

When I run `gh browse` I would expect that it automatically asks the CLI user to select the configuration for the default remote to open.

- [x] I'm willing to submit a PR which implements this feature request.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với phần triển khai lệnh gh browse và luồng gh repo set-default hiện có; kiểm tra cách browse xử lý nhiều remote và hiển thị lệnh được đề xuất. Chỉ thêm tính năng chọn remote mặc định tương tác khi cần, sau đó xác minh rằng browse mở repository đã chọn trong khi hành vi hiện có vẫn không thay đổi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
git, go
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
68/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.