github / github/vscode-github-actions
Try to auto-detect which remote points to github.com
- 主要语言
- TypeScript
- 星标
- 660
- 派生
- 213
- PR 合并指标
- 30 天内没有已合并 PR
描述
**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.
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- git, github, typescript
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100