github / github/vscode-github-actions

SSH aliasing to custom remote URL

Aberta
#239 4 comentários 11 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
TypeScript
Estrelas
660
Forks
213
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**Is your feature request related to a problem? Please describe.**
My github repo is cloned using an SSH alias, i.e.

```
Host github-mycompany
HostName github.com
User git
IdentityFile ~/.ssh/mycompany
```

As a result, the extension doesn't seem to know that my directory points to a github repository

**Describe the solution you'd like**
Support remote definitions. For example, gitlens solves this with a configuration:

```
"gitlens.remotes": [
{
"regex": "github-mycompany",
"type": "Custom",
"urls": {
"repository": "https://github.com/${repoBase}/${repoPath}",
"branches": "https://github.com/${repoBase}/${repoPath}/branches",
"branch": "https://github.com/${repoBase}/${repoPath}/commits/${branch}",
"commit": "https://github.com/${repoBase}/${repoPath}/commit/${id}",
"file": "https://github.com/${repoBase}/${repoPath}?path=${file}${line}",
"fileInBranch": "https://github.com/${repoBase}/${repoPath}/blob/${branch}/${file}${line}",
"fileInCommit": "https://github.com/${repoBase}/${repoPath}/blob/${id}/${file}${line}",
"fileLine": "#L${line}",
"fileRange": "#L${start}-L${end}"
}
}
],
```

Although I don't need anything this advanced. Even something like this would suffice:

```
"github-actions.remote-url": "https://github.com/mycompany"
```

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

No files or tests are named. Start by tracing how the extension detects GitHub remotes and builds repository links, then compare that flow with the SSH alias and custom remote examples in the issue. Done means a configured SSH alias is recognized and generated links resolve to the intended GitHub repository.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
typescript, vscode
Domínio
devtools
Tipo de issue
Funcionalidade
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.