Reusable workflow links ignore `github-enterprise.uri` configuration
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
- 57/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- github-actions, typescript, vscode
- Lĩnh vực
- ci-cd, developer-experience
Hướng nghiên cứu
Bắt đầu trong src/workflow/languageServer.ts và theo dõi cách gitHubApiUrl từ initializationOptions đi tới quá trình tạo liên kết reusable-workflow. Tái hiện hành vi khi di chuột hoặc nhấp với github-actions.use-enterprise được bật, sau đó xác minh rằng các liên kết Enterprise sử dụng host đã cấu hình, trong khi các liên kết đến github.com 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.
Mô tả
Describe the bug
When using github-actions.use-enterprise: true with a configured github-enterprise.uri (e.g. https://my-company.ghe.com), the links generated for reusable workflows in the uses: clause incorrectly point to github.com instead of the Enterprise instance.
To Reproduce
Steps to reproduce the behavior:
- Configure settings:
\"github-enterprise.uri\": \"https://my-company.ghe.com\",
\"github-actions.use-enterprise\": true
- Open a workflow file.
- Add a reusable workflow reference:
uses: my-org/shared-workflows/.github/workflows/workflow.yml@v1
- Hover or Click the link on the
usespath.
Expected behavior
The link should open https://my-company.ghe.com/my-org/shared-workflows/blob/v1/.github/workflows/workflow.yml.
Actual behavior
The link opens https://github.com/my-org/shared-workflows/tree/v1/.github/workflows/workflow.yml.
Additional Context
The extension correctly passes gitHubApiUrl to the language server initializationOptions in src/workflow/languageServer.ts, but it appears the link generation logic in the language server defaults to github.com
- Ngôn ngữ chính
- TypeScript
- Star
- 661
- Fork
- 214
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
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 github/vscode-github-actions
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
github/vscode-github-actions#627 · 1 reaction ·
-
long work Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
github/vscode-github-actions#628 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
github/vscode-github-actions#625 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
github/vscode-github-actions#621 · 3 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
github/vscode-github-actions#619 ·
Tất cả issue của github/vscode-github-actions
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/inspector#2458 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
carbon-design-system/ibm-products#9907 ·