vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

SSH aliasing to custom remote URL

Open warent-bottleneck opened this issue 1 year ago • 2 comments

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"

warent-bottleneck avatar Aug 01 '23 17:08 warent-bottleneck

TFNMPFCB5pEUxuwMnKg7gLJANQ8BcTwfDF

7507032318 avatar Aug 07 '23 15:08 7507032318

Maybe not a bug, but my gut feeling is that enhancement means this is very low priority. Until it's fixed, this extension does nothing but cause false alarms for me - since it can't talk to github, it assumes variables are undefined. 😞

mark-pictor-csec avatar Nov 10 '23 19:11 mark-pictor-csec