github / github/vscode-github-actions

Try to auto-detect which remote points to github.com

オープン
#50 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。