github / github/vscode-github-actions

Throws an Error when used without Git

Đang mở
#453 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
660
Fork
213
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
When using a VCS like JJ, the extension crashes with "Unable to Connect to the GitHub API, please check your internet connection."

**To Reproduce**
Steps to reproduce the behavior:
1. Put `git.disabled` in your .vscode/settings.json
2. Open actions pane

**Expected behavior**
It shouldn't require the Git extension, only provide optional features (like current branch).

**Screenshots**
```
2025-03-14 12:38:40.980 [error] Error: Git model not found
at s.getAPI (/Users/dukese01/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:805076)
at new _d (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2190:26346)
at Function.createProvider (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2190:26938)
at gw (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2190:32572)
at kf (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2526:6481)
at G4 (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2526:7586)
```

**Extension Version**
`v0.27.1`

**Additional context**
Feel free to close as wontfix, I know this isn't exactly the recommended workflow :)
As I think about it, can you even figure out the connected repo without Git? IDK.

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

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

Hướng nghiên cứu

Tái tạo sự cố bằng cách đặt git.disabled trong .vscode/settings.json và mở ngăn hành động. Theo dõi đường dẫn khởi động của extension tạo provider phụ thuộc vào Git, sau đó xác minh rằng ngăn hành động mở được khi không có extension Git, trong khi các tính năng tùy chọn như branch hiện tại có thể không khả dụng.

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, github, typescript, vscode
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/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.