github / github/vscode-github-actions

Try to auto-detect which remote points to github.com

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

Description

**Is your feature request related to a problem? Please describe.**

The extension couldn't find GitHub repository for the git repository when both of the following conditions are met:

- git repository has two remotes
- github url is not set as `origin` remote

i.e.:

```
$ git remote -v
github https://github.com/my-org/my-repo.git (fetch)
github https://github.com/my-org/my-repo.git (push)
origin https://internal-scm.example.com/my-repo.git (fetch)
origin https://internal-scm.example.com/my-repo.git (push)
```

**Describe the solution you'd like**
Let the extension detect GitHub repository from all the remotes, not only from `origin`.

**Additional context**

AFAIK GitHub CLI supports this scenario.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by tracing the extension's Git remote detection entry point and identify where it assumes the GitHub URL is on origin. Exercise it with the two-remote example from the issue; done means a GitHub remote is detected even when origin points to the internal SCM, without breaking the existing origin case.

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

Évaluation

Stack technique
git, github, typescript
Domaine
devtools
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

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