github / github/vscode-github-actions
SSH aliasing to custom remote URL
- 主要语言
- TypeScript
- 星标
- 660
- 派生
- 213
- PR 合并指标
- 30 天内没有已合并 PR
描述
**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"
```
贡献指南
调研方向
没有指定文件或测试。首先跟踪扩展如何检测 GitHub 远程仓库并构建仓库链接,然后将该流程与 issue 中的 SSH 别名和自定义远程仓库示例进行比较。当能够识别已配置的 SSH 别名,并且生成的链接解析到预期的 GitHub 仓库时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript, vscode
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100