Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Reusable workflow links ignore `github-enterprise.uri` configuration

Đang mở
#573 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

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ả

bug

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:

  1. Configure settings:
   \"github-enterprise.uri\": \"https://my-company.ghe.com\",
   \"github-actions.use-enterprise\": true
  1. Open a workflow file.
  2. Add a reusable workflow reference:
uses: my-org/shared-workflows/.github/workflows/workflow.yml@v1
  1. Hover or Click the link on the uses path.

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/vscode-github-actions

Tất cả issue của github/vscode-github-actions

Issue tương tự

Thêm issue về TypeScript

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.