github / github/gh-stack

Remapping hostname prevents using `gh stack submit`

Ouverte
#337 2 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
bug topic: cli - submit
Langage dominant
Go
Étoiles
1.5k
Forks
70
Merge moyen
1 j 8 h
PR mergées (30 j)
7

Description

I use a synthetic hostname mapping in `~/.gitconfig` (1) in conjunction with my `.ssh/config` (2) to select the SSH host key and user identity. In this case, the synthetic hostname is `fastalyze.github.com`. When I run `gh stack submit` this happens:

```
gh stack submit
Checking stack state...
✗ failed to create GitHub client: determining repository: unable to determine current repository, none of the git remotes configured for this repository point to a known GitHub host
```

I suspect there is a check for stacked PR support based on the hostname, and it's not recognizing `fastalyze.github.com`.

(1) `~/.gitconfig` stanza:
```
[url "git@fastalyze.github.com:fastalyze/"]
insteadOf = git@github.com:fastalyze/

[url "git@fastalyze.github.com:fastalyze/"]
insteadOf = https://github.com/fastalyze/
```

(2) `.ssh/config` stanza:
```
host fastalyze.github.com
Hostname github.com
User "jeff-younker"
IdentityFile ~/.ssh/id_fastalyze
IdentityAgent none
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start at the `gh stack submit` entry point and reproduce the repository-detection failure using the supplied `.gitconfig` and `.ssh/config` mappings. Trace how the remapped hostname is checked against known GitHub hosts; done when `gh stack submit` recognizes this configuration and proceeds without breaking normal GitHub remote detection.

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

Évaluation

Stack technique
go
Domaine
cli
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
55/100

Recevez les nouvelles issues par e-mail

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