github / github/vscode-github-actions

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

未關閉
#50 8 則留言 0 個 reaction 已指派 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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。