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.
コントリビューションガイド
調査の方向性
まず、拡張機能の Git リモート検出のエントリポイントをたどり、GitHub URL が origin にあると仮定している箇所を特定します。Issue にある 2 つのリモートの例で動作を確認します。origin が内部 SCM を指している場合でも GitHub リモートが検出され、既存の origin のケースを壊さないことが完了条件です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, github, typescript
- 領域
- devtools
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100