github / github/vscode-github-actions

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

Ouverte
#573 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
TypeScript
Étoiles
660
Forks
213
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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:
```json
\"github-enterprise.uri\": \"https://my-company.ghe.com\",
\"github-actions.use-enterprise\": true
```
2. Open a workflow file.
3. Add a reusable workflow reference:
```yaml
uses: my-org/shared-workflows/.github/workflows/workflow.yml@v1
```
4. 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`

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start in src/workflow/languageServer.ts and trace how gitHubApiUrl from initializationOptions reaches reusable-workflow link generation. Reproduce the hover or click behavior with github-actions.use-enterprise enabled, then verify that enterprise links use the configured host while github.com links remain unchanged.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
github-actions, typescript, vscode
Domaine
ci-cd, developer-experience
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
57/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.